nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 raspa,
5}:
6
7stdenvNoCC.mkDerivation {
8 pname = "raspa-data";
9 inherit (raspa) version src;
10
11 outputs = [
12 "out"
13 "doc"
14 ];
15
16 installPhase = ''
17 runHook preInstall
18 mkdir -p "$out/share/raspa"
19 mv examples "$out/share/raspa"
20 mkdir -p "$doc/share/raspa"
21 mv -T "Docs" "$doc/share/raspa/doc"
22 runHook postInstall
23 '';
24
25 # Keep the shebangs of the examples from being patched
26 dontPatchShebangs = true;
27
28 meta = with lib; {
29 inherit (raspa.meta) homepage license maintainers;
30 description = "Example packs and documentation of RASPA";
31 outputsToInstall = [
32 "out"
33 "doc"
34 ];
35 platforms = lib.platforms.all;
36 };
37}