Browse Source

Add a default.nix file

master
Peter J. Jones 9 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 @@
{ pkgs ? import <nixpkgs> { }
}:

pkgs.stdenvNoCC.mkDerivation rec {
name = "encryption-utils";
meta.description = "Peter's encryption scripts";
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
src = ./.;

installPhase = ''
mkdir -p $out/bin $out/share/gnupg
find bin boot -type f -exec install -m 0555 '{}' $out/bin ';'
find etc -type f -exec install -m 0444 '{}' $out/share/gnupg ';'
'';
}

Loading…
Cancel
Save