mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +00:00
0071ae1d4f
Introduce a `skawarePackages.buildPackage` function that contains the common setup, removing a lot of duplication. In particular, we require that the build directory has to be empty after the `fixupPhase`, to make sure every relevant file is moved to the outputs. A next step would be to deduplicate the `configureFlags` attributes and only require a `skawareInputs` field.
31 lines
624 B
Nix
31 lines
624 B
Nix
{ stdenv, skawarePackages }:
|
|
|
|
with skawarePackages;
|
|
|
|
buildPackage {
|
|
pname = "skalibs";
|
|
version = "2.7.0.0";
|
|
sha256 = "068pkbl91mi35amlhv491dwrbzyfifrlxijss0g2vf693xvx6lxm";
|
|
|
|
description = "A set of general-purpose C programming libraries";
|
|
|
|
outputs = [ "lib" "dev" "doc" "out" ];
|
|
|
|
configureFlags = [
|
|
# assume /dev/random works
|
|
"--enable-force-devr"
|
|
"--libdir=\${lib}/lib"
|
|
"--dynlibdir=\${lib}/lib"
|
|
"--includedir=\${dev}/include"
|
|
"--sysdepdir=\${lib}/lib/skalibs/sysdeps"
|
|
];
|
|
|
|
postInstall = ''
|
|
rm -rf sysdeps.cfg
|
|
rm libskarnet.*
|
|
|
|
mv doc $doc/share/doc/skalibs/html
|
|
'';
|
|
|
|
}
|