mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
lorri: cleanup, format
This commit is contained in:
parent
822b70e18c
commit
28e538c9e3
1 changed files with 13 additions and 16 deletions
|
@ -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 ];
|
||||
};
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue