summary refs log tree commit diff
path: root/pkgs/tools/misc/lorri
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-03-05 16:49:05 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-03-06 21:02:51 +0100
commit28e538c9e31caa0a124578b1d37eb4c304e58332 (patch)
tree0ead5d61308838acb65bcb4edf8ab3095c7002c1 /pkgs/tools/misc/lorri
parent822b70e18c68bee876dcac2c870bbce1e51ea3f5 (diff)
downloadnixpkgs-28e538c9e31caa0a124578b1d37eb4c304e58332.tar
nixpkgs-28e538c9e31caa0a124578b1d37eb4c304e58332.tar.gz
nixpkgs-28e538c9e31caa0a124578b1d37eb4c304e58332.tar.bz2
nixpkgs-28e538c9e31caa0a124578b1d37eb4c304e58332.tar.lz
nixpkgs-28e538c9e31caa0a124578b1d37eb4c304e58332.tar.xz
nixpkgs-28e538c9e31caa0a124578b1d37eb4c304e58332.tar.zst
nixpkgs-28e538c9e31caa0a124578b1d37eb4c304e58332.zip
lorri: cleanup, format
Diffstat (limited to 'pkgs/tools/misc/lorri')
-rw-r--r--pkgs/tools/misc/lorri/default.nix29
1 files changed, 13 insertions, 16 deletions
diff --git a/pkgs/tools/misc/lorri/default.nix b/pkgs/tools/misc/lorri/default.nix
index 401636ab687..a7055437939 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 ];
+  };
 })