Skip to content

Commit eed9220

Browse files
Merge pull request #170 from Minion3665/main
Prevent the nix flake using sudo
2 parents 7043231 + 4ac43fb commit eed9220

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

flake.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@
3232
gawk
3333
pkg-config
3434
] ++ (import ./deps.nix {inherit pkgs;});
35+
36+
installPhase = ''
37+
runHook preInstall
38+
39+
mkdir -p $out/bin
40+
mkdir -p $out/share/man/man1
41+
42+
cp activate-linux $out/bin
43+
cp activate-linux.1 $out/share/man/man1
44+
45+
runHook postInstall
46+
'';
3547
};
3648

3749
packages.default = self.packages.${system}.activate-linux;

0 commit comments

Comments
 (0)