From 885af08edef3eede81101d4303e3a025dc078449 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 16 Jul 2015 19:44:44 +0200 Subject: cleanup, rebuild-system --- nix/rebuild-system.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 nix/rebuild-system.nix (limited to 'nix/rebuild-system.nix') diff --git a/nix/rebuild-system.nix b/nix/rebuild-system.nix new file mode 100644 index 0000000..b787392 --- /dev/null +++ b/nix/rebuild-system.nix @@ -0,0 +1,28 @@ +{ stdenv +, fetchgit +, makeWrapper +, sudo +, git +}: + +stdenv.mkDerivation rec { + inherit sudo git; + name = "rebuild-system-${version}"; + version = "0.1"; + src = fetchgit { + inherit name; + url = git://git.yggdrasil.li/utils; + rev = ""; + sha256 = ""; + }; + buildInputs = [ makeWrapper ]; + buildPhase = "true"; + installPhase = '' + mkdir -p $out/bin + cp $src/rebuild-system $out/bin/ + chmod +x $out/bin/rebuild-system + wrapProgram $out/bin/rebuild-system \ + --prefix PATH : ${sudo}/bin \ + --prefix PATH : ${git}/bin + ''; +} -- cgit v1.2.3 From cdf3f394fbd4713ae8aa13f9111be9ca8f64d34b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 16 Jul 2015 19:49:19 +0200 Subject: rev bump --- nix/rebuild-system.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nix/rebuild-system.nix') diff --git a/nix/rebuild-system.nix b/nix/rebuild-system.nix index b787392..4a8c3e0 100644 --- a/nix/rebuild-system.nix +++ b/nix/rebuild-system.nix @@ -12,8 +12,8 @@ stdenv.mkDerivation rec { src = fetchgit { inherit name; url = git://git.yggdrasil.li/utils; - rev = ""; - sha256 = ""; + rev = "885af08edef3eede81101d4303e3a025dc078449"; + sha256 = "e4a1e4c6661a5c8f071b22251fda15bac86051d19d6c5ce60fbcd87dad8386e4"; }; buildInputs = [ makeWrapper ]; buildPhase = "true"; -- cgit v1.2.3 From 573496399a73e127f92d65d88f0f943b78387d4d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 16 Jul 2015 20:11:59 +0200 Subject: =?UTF-8?q?sudo=20needs=20to=20be=20wrapped=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nix/rebuild-system.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nix/rebuild-system.nix') diff --git a/nix/rebuild-system.nix b/nix/rebuild-system.nix index 4a8c3e0..f03a2e2 100644 --- a/nix/rebuild-system.nix +++ b/nix/rebuild-system.nix @@ -22,6 +22,7 @@ stdenv.mkDerivation rec { cp $src/rebuild-system $out/bin/ chmod +x $out/bin/rebuild-system wrapProgram $out/bin/rebuild-system \ + --prefix PATH : /var/setuid-wrappers \ --prefix PATH : ${sudo}/bin \ --prefix PATH : ${git}/bin ''; -- cgit v1.2.3 From dd28d96d3469a46888ac4e1103818978aa4fc51b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 16 Jul 2015 20:13:27 +0200 Subject: Made last commit more explicit --- nix/rebuild-system.nix | 1 - 1 file changed, 1 deletion(-) (limited to 'nix/rebuild-system.nix') diff --git a/nix/rebuild-system.nix b/nix/rebuild-system.nix index f03a2e2..311f331 100644 --- a/nix/rebuild-system.nix +++ b/nix/rebuild-system.nix @@ -23,7 +23,6 @@ stdenv.mkDerivation rec { chmod +x $out/bin/rebuild-system wrapProgram $out/bin/rebuild-system \ --prefix PATH : /var/setuid-wrappers \ - --prefix PATH : ${sudo}/bin \ --prefix PATH : ${git}/bin ''; } -- cgit v1.2.3