summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2024-10-16 21:21:55 -0400
committerseth <[email protected]>2024-10-16 23:23:33 -0400
commitc3415f6709e0c03b76547dd5fa8c1e07ce048f61 (patch)
treee2b2e54986dc8b92d8fb484c809ba3d6f36097bb
parent809f251bb8b7c4676f9f018c7a86188348f33a92 (diff)
tree-wide: no more `with lib;`
-rw-r--r--pkgs/papa/package.nix28
-rw-r--r--pkgs/treefetch/package.nix10
2 files changed, 21 insertions, 17 deletions
diff --git a/pkgs/papa/package.nix b/pkgs/papa/package.nix
index 61c465e..4c98ec5 100644
--- a/pkgs/papa/package.nix
+++ b/pkgs/papa/package.nix
@@ -1,14 +1,15 @@
{
lib,
- rustPlatform,
fetchFromGitHub,
- papa,
installShellFiles,
nix-update-script,
- testers,
openssl,
+ papa,
pkg-config,
+ rustPlatform,
+ testers,
}:
+
rustPlatform.buildRustPackage rec {
pname = "papa";
version = "4.1.0-rc.4";
@@ -16,7 +17,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "AnActualEmerald";
repo = "papa";
- rev = "v${version}";
+ rev = "refs/tags/v${version}";
hash = "sha256-XAYenoWLKeNzNozFRPz84WDeU0/y2hd/wgr3UeZLFS0=";
};
@@ -31,6 +32,7 @@ rustPlatform.buildRustPackage rec {
pkg-config
installShellFiles
];
+
buildInputs = [ openssl ];
postInstall = ''
@@ -41,25 +43,25 @@ rustPlatform.buildRustPackage rec {
'';
passthru = {
- tests.version = testers.testVersion { package = papa; };
-
- updateScript = nix-update-script { };
-
libthermite = fetchFromGitHub {
owner = "AnActualEmerald";
repo = "thermite";
rev = "8e6fc6af20e9bd2af4313fee65dfed05cfa1bbd5";
hash = "sha256-7zkXW2G7cwyobYJO22o1QoJRs2O6sD7/S9frZ/+DNIQ=";
};
+
+ tests.version = testers.testVersion { package = papa; };
+
+ updateScript = nix-update-script { };
};
- meta = with lib; {
+ meta = {
description = "Mod manager for Northstar clients and servers";
homepage = "https://github.com/AnActualEmerald/papa";
- changelog = "https://github.com/AnActualEmerald/papa/releases/tag/v${src.version}";
+ changelog = "https://github.com/AnActualEmerald/papa/releases/tag/v${version}";
+ license = lib.licenses.mit;
+ maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "papa";
- license = licenses.mit;
- maintainers = with maintainers; [ getchoo ];
- platforms = platforms.unix;
+ platforms = lib.platforms.unix;
};
}
diff --git a/pkgs/treefetch/package.nix b/pkgs/treefetch/package.nix
index 445f0af..56769b0 100644
--- a/pkgs/treefetch/package.nix
+++ b/pkgs/treefetch/package.nix
@@ -3,6 +3,7 @@
fetchFromGitHub,
rustPlatform,
}:
+
rustPlatform.buildRustPackage {
pname = "treefetch";
version = "unstable-2022-06-08";
@@ -16,12 +17,13 @@ rustPlatform.buildRustPackage {
cargoHash = "sha256-8HJYYPBogkgEfK3kv8dFUFaqUhvgYAOrhUIyZo3bqp8=";
- meta = with lib; {
+ meta = {
description = "A plant-based system fetch tool made with Rust.";
longDescription = "A comfy and fast system fetch tool made in Rust. Tested to be much faster than neofetch and pfetch.";
homepage = "https://github.com/angelofallars/treefetch";
- license = licenses.gpl3;
- maintainers = with maintainers; [ getchoo ];
- platforms = platforms.unix;
+ license = lib.licenses.gpl3;
+ maintainers = with lib.maintainers; [ getchoo ];
+ mainProgram = "treefetch";
+ platforms = lib.platforms.unix;
};
}