lorri: cleanup, format

This commit is contained in:
Sandro Jäckel 2021-03-05 16:49:05 +01:00
parent 822b70e18c
commit 28e538c9e3
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -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 ];
};
})