Merge pull request #34646 from clacke/hledger-darwin

hledger: build correctly on darwin
This commit is contained in:
Peter Simons 2018-02-07 08:32:59 +01:00 committed by GitHub
commit 8ff7ac4859
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -966,37 +966,37 @@ self: super: {
hledger = overrideCabal super.hledger (drv: {
postInstall = ''
for i in $(seq 1 9); do
for j in $data/share/${self.ghc.name}/${pkgs.stdenv.system}-${self.ghc.name}/*/*.$i $data/share/${self.ghc.name}/${pkgs.stdenv.system}-${self.ghc.name}/*/.otherdocs/*.$i; do
for j in $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.$i $data/share/${self.ghc.name}/*-${self.ghc.name}/*/.otherdocs/*.$i; do
mkdir -p $out/share/man/man$i
cp $j $out/share/man/man$i/
done
done
mkdir $out/share/info
cp $data/share/${self.ghc.name}/${pkgs.stdenv.system}-${self.ghc.name}/*/*.info $out/share/info/
mkdir -p $out/share/info
cp $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.info $out/share/info/
'';
});
hledger-ui = overrideCabal super.hledger-ui (drv: {
postInstall = ''
for i in $(seq 1 9); do
for j in $data/share/${self.ghc.name}/${pkgs.stdenv.system}-${self.ghc.name}/*/*.$i $data/share/${self.ghc.name}/${pkgs.stdenv.system}-${self.ghc.name}/*/.otherdocs/*.$i; do
for j in $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.$i $data/share/${self.ghc.name}/*-${self.ghc.name}/*/.otherdocs/*.$i; do
mkdir -p $out/share/man/man$i
cp $j $out/share/man/man$i/
done
done
mkdir $out/share/info
cp $data/share/${self.ghc.name}/${pkgs.stdenv.system}-${self.ghc.name}/*/*.info $out/share/info/
mkdir -p $out/share/info
cp $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.info $out/share/info/
'';
});
hledger-web = overrideCabal super.hledger-web (drv: {
postInstall = ''
for i in $(seq 1 9); do
for j in $data/share/${self.ghc.name}/${pkgs.stdenv.system}-${self.ghc.name}/*/*.$i $data/share/${self.ghc.name}/${pkgs.stdenv.system}-${self.ghc.name}/*/.otherdocs/*.$i; do
for j in $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.$i $data/share/${self.ghc.name}/*-${self.ghc.name}/*/.otherdocs/*.$i; do
mkdir -p $out/share/man/man$i
cp $j $out/share/man/man$i/
done
done
mkdir $out/share/info
cp $data/share/${self.ghc.name}/${pkgs.stdenv.system}-${self.ghc.name}/*/*.info $out/share/info/
mkdir -p $out/share/info
cp $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.info $out/share/info/
'';
});