mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
asl: 142-bld211 -> 142-bld232
This commit is contained in:
parent
0c48d38167
commit
3931b0b6cf
@ -1,19 +1,22 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchzip
|
||||
, buildDocs ? false, tex
|
||||
, tex
|
||||
, buildDocs ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "asl";
|
||||
version = "142-bld211";
|
||||
version = "142-bld232";
|
||||
|
||||
src = fetchzip {
|
||||
src = let inherit (finalAttrs) pname version; in fetchzip {
|
||||
name = "${pname}-${version}";
|
||||
url = "http://john.ccac.rwth-aachen.de:8000/ftp/as/source/c_version/asl-current-${version}.tar.bz2";
|
||||
hash = "sha256-Sbm16JX7kC/7Ws7YgNBUXNqOCl6u+RXgfNjTODhCzSM=";
|
||||
hash = "sha256-Q50GzXBxFMhbt5s9OgHPNH4bdqz2hhEmTnMmKowVn2E=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "doc" "man" ];
|
||||
|
||||
nativeBuildInputs = lib.optionals buildDocs [ tex ];
|
||||
|
||||
postPatch = lib.optionalString (!buildDocs) ''
|
||||
@ -26,10 +29,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
preBuild = ''
|
||||
bindir="${placeholder "out"}/bin" \
|
||||
docdir="${placeholder "out"}/doc/asl" \
|
||||
docdir="${placeholder "doc"}/share/doc/asl" \
|
||||
incdir="${placeholder "out"}/include/asl" \
|
||||
libdir="${placeholder "out"}/lib/asl" \
|
||||
mandir="${placeholder "out"}/share/man" \
|
||||
mandir="${placeholder "man"}/share/man" \
|
||||
substituteAll ${./Makefile-nixos.def} Makefile.def
|
||||
mkdir -p .objdir
|
||||
'';
|
||||
@ -47,8 +50,7 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
# TODO: multiple outputs
|
||||
})
|
||||
# TODO: cross-compilation support
|
||||
# TODO: customize TeX input
|
||||
# TODO: report upstream about `mkdir -p .objdir/`
|
||||
|
Loading…
Reference in New Issue
Block a user