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