summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-05-14 18:50:56 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-05-14 18:50:56 +0200
commita981d1a18082b10ac36df82c5ae99cf34a86e9ce (patch)
treecff85aa2ff5f80ae8cb3babe9f1df8260502b64d /nix
parent2968aa8fb03db8c8d27c8a7669fb362efd40c6cc (diff)
downloadutils-a981d1a18082b10ac36df82c5ae99cf34a86e9ce.tar
utils-a981d1a18082b10ac36df82c5ae99cf34a86e9ce.tar.gz
utils-a981d1a18082b10ac36df82c5ae99cf34a86e9ce.tar.bz2
utils-a981d1a18082b10ac36df82c5ae99cf34a86e9ce.tar.xz
utils-a981d1a18082b10ac36df82c5ae99cf34a86e9ce.zip
cleanup
Diffstat (limited to 'nix')
-rw-r--r--nix/rebuild-system.nix14
1 files changed, 4 insertions, 10 deletions
diff --git a/nix/rebuild-system.nix b/nix/rebuild-system.nix
index 311f331..5c65e88 100644
--- a/nix/rebuild-system.nix
+++ b/nix/rebuild-system.nix
@@ -1,25 +1,19 @@
1{ stdenv 1{ stdenv
2, fetchgit 2, fetchgit
3, makeWrapper 3, makeWrapper
4, sudo
5, git 4, git
6}: 5}:
7 6
8stdenv.mkDerivation rec { 7stdenv.mkDerivation rec {
9 inherit sudo git; 8 inherit git;
10 name = "rebuild-system-${version}"; 9 name = "rebuild-system-${version}";
11 version = "0.1"; 10 version = "0.1";
12 src = fetchgit { 11 src = ../rebuild-system;
13 inherit name;
14 url = git://git.yggdrasil.li/utils;
15 rev = "885af08edef3eede81101d4303e3a025dc078449";
16 sha256 = "e4a1e4c6661a5c8f071b22251fda15bac86051d19d6c5ce60fbcd87dad8386e4";
17 };
18 buildInputs = [ makeWrapper ]; 12 buildInputs = [ makeWrapper ];
19 buildPhase = "true"; 13 phases = ["installPhase"];
20 installPhase = '' 14 installPhase = ''
21 mkdir -p $out/bin 15 mkdir -p $out/bin
22 cp $src/rebuild-system $out/bin/ 16 cp $src $out/bin/rebuild-system
23 chmod +x $out/bin/rebuild-system 17 chmod +x $out/bin/rebuild-system
24 wrapProgram $out/bin/rebuild-system \ 18 wrapProgram $out/bin/rebuild-system \
25 --prefix PATH : /var/setuid-wrappers \ 19 --prefix PATH : /var/setuid-wrappers \