diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-03-05 16:49:05 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-03-06 21:02:51 +0100 |
commit | 28e538c9e31caa0a124578b1d37eb4c304e58332 (patch) | |
tree | 0ead5d61308838acb65bcb4edf8ab3095c7002c1 /pkgs/tools/misc/lorri | |
parent | 822b70e18c68bee876dcac2c870bbce1e51ea3f5 (diff) |
lorri: cleanup, format
Diffstat (limited to 'pkgs/tools/misc/lorri')
-rw-r--r-- | pkgs/tools/misc/lorri/default.nix | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/pkgs/tools/misc/lorri/default.nix b/pkgs/tools/misc/lorri/default.nix index 401636ab68782..a70554379393e 100644 --- a/pkgs/tools/misc/lorri/default.nix +++ b/pkgs/tools/misc/lorri/default.nix @@ -1,13 +1,11 @@ -{ lib, stdenv +{ lib +, stdenv , pkgs +, rustPackages , fetchFromGitHub , rustPlatform - # Updater script -, runtimeShell , writers - # Tests , nixosTests - # Apple dependencies , CoreServices , Security }: @@ -23,13 +21,6 @@ in (rustPlatform.buildRustPackage rec { pname = "lorri"; inherit version; - meta = with lib; { - description = "Your project's nix-env"; - homepage = "https://github.com/nix-community/lorri"; - license = licenses.asl20; - maintainers = with maintainers; [ grahamc Profpatsch ]; - }; - src = fetchFromGitHub { owner = "nix-community"; repo = pname; @@ -43,11 +34,10 @@ in (rustPlatform.buildRustPackage rec { doCheck = false; BUILD_REV_COUNT = src.revCount or 1; - RUN_TIME_CLOSURE = pkgs.callPackage ./runtime.nix {}; + RUN_TIME_CLOSURE = pkgs.callPackage ./runtime.nix { }; - nativeBuildInputs = with pkgs; [ rustPackages.rustfmt ]; - buildInputs = - lib.optionals stdenv.isDarwin [ CoreServices Security ]; + nativeBuildInputs = [ rustPackages.rustfmt ]; + buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ]; # copy the docs to the $man and $doc outputs postInstall = '' @@ -70,4 +60,11 @@ in (rustPlatform.buildRustPackage rec { nixos = nixosTests.lorri; }; }; + + meta = with lib; { + description = "Your project's nix-env"; + homepage = "https://github.com/target/lorri"; + license = licenses.asl20; + maintainers = with maintainers; [ grahamc Profpatsch ]; + }; }) |