From a981d1a18082b10ac36df82c5ae99cf34a86e9ce Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 14 May 2016 18:50:56 +0200 Subject: cleanup --- nix/rebuild-system.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'nix') 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 @@ { stdenv , fetchgit , makeWrapper -, sudo , git }: stdenv.mkDerivation rec { - inherit sudo git; + inherit git; name = "rebuild-system-${version}"; version = "0.1"; - src = fetchgit { - inherit name; - url = git://git.yggdrasil.li/utils; - rev = "885af08edef3eede81101d4303e3a025dc078449"; - sha256 = "e4a1e4c6661a5c8f071b22251fda15bac86051d19d6c5ce60fbcd87dad8386e4"; - }; + src = ../rebuild-system; buildInputs = [ makeWrapper ]; - buildPhase = "true"; + phases = ["installPhase"]; installPhase = '' mkdir -p $out/bin - cp $src/rebuild-system $out/bin/ + cp $src $out/bin/rebuild-system chmod +x $out/bin/rebuild-system wrapProgram $out/bin/rebuild-system \ --prefix PATH : /var/setuid-wrappers \ -- cgit v1.2.3