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 , pkgs
, rustPackages
, fetchFromGitHub , fetchFromGitHub
, rustPlatform , rustPlatform
# Updater script
, runtimeShell
, writers , writers
# Tests
, nixosTests , nixosTests
# Apple dependencies
, CoreServices , CoreServices
, Security , Security
}: }:
@ -23,13 +21,6 @@ in (rustPlatform.buildRustPackage rec {
pname = "lorri"; pname = "lorri";
inherit version; 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 { src = fetchFromGitHub {
owner = "nix-community"; owner = "nix-community";
repo = pname; repo = pname;
@ -43,11 +34,10 @@ in (rustPlatform.buildRustPackage rec {
doCheck = false; doCheck = false;
BUILD_REV_COUNT = src.revCount or 1; 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 ]; nativeBuildInputs = [ rustPackages.rustfmt ];
buildInputs = buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ];
lib.optionals stdenv.isDarwin [ CoreServices Security ];
# copy the docs to the $man and $doc outputs # copy the docs to the $man and $doc outputs
postInstall = '' postInstall = ''
@ -70,4 +60,11 @@ in (rustPlatform.buildRustPackage rec {
nixos = nixosTests.lorri; 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 ];
};
}) })