mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
34 lines
706 B
Nix
34 lines
706 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, gzip
|
|
, raspa
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "raspa-data";
|
|
inherit (raspa) version src;
|
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
nativeBuildInpuhs = [ gzip ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p "$out/share/raspa"
|
|
mv examples "$out/share/raspa"
|
|
mkdir -p "$doc/share/raspa"
|
|
mv -T "Docs" "$doc/share/raspa/doc"
|
|
runHook postInstall
|
|
'';
|
|
|
|
# Keep the shebangs of the examples from being patched
|
|
dontPatchShebangs = true;
|
|
|
|
meta = with lib; {
|
|
inherit (raspa.meta) homepage license maintainers;
|
|
description = "Example packs and documentation of RASPA";
|
|
outputsToInstall = [ "out" "doc" ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|