lorri: cleanup, format
This commit is contained in:
parent
822b70e18c
commit
28e538c9e3
@ -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;
|
||||||
@ -45,9 +36,8 @@ in (rustPlatform.buildRustPackage rec {
|
|||||||
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 ];
|
||||||
|
};
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user