Browse Source

Add a default.nix file

master
Peter J. Jones 5 months ago
parent
commit
dd802939b1
Signed by: Peter Jones <pjones@devalot.com> GPG Key ID: 9DAFAA8D01941E49
1 changed files with 15 additions and 0 deletions
  1. 15
    0
      default.nix

+ 15
- 0
default.nix View File

@@ -0,0 +1,15 @@
1
+{ pkgs ? import <nixpkgs> { }
2
+}:
3
+
4
+pkgs.stdenvNoCC.mkDerivation rec {
5
+  name = "encryption-utils";
6
+  meta.description = "Peter's encryption scripts";
7
+  phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
8
+  src = ./.;
9
+
10
+  installPhase = ''
11
+    mkdir -p $out/bin $out/share/gnupg
12
+    find bin boot -type f -exec install -m 0555 '{}' $out/bin ';'
13
+    find etc -type f -exec install -m 0444 '{}' $out/share/gnupg ';'
14
+  '';
15
+}

Loading…
Cancel
Save