1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

duperemove: set version string

This commit is contained in:
Dee Anzorge 2023-10-22 18:00:45 +02:00
parent 187c660416
commit d437fcbefd

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, libgcrypt
, pkg-config, glib, linuxHeaders ? stdenv.cc.libc.linuxHeaders, sqlite
, util-linux }:
, util-linux, testers, duperemove }:
stdenv.mkDerivation rec {
pname = "duperemove";
@ -21,7 +21,16 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libgcrypt glib linuxHeaders sqlite ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
makeFlags = [
"PREFIX=${placeholder "out"}"
"VERSION=v${version}"
];
passthru.tests.version = testers.testVersion {
package = duperemove;
command = "duperemove --version";
version = "v${version}";
};
meta = with lib; {
description = "A simple tool for finding duplicated extents and submitting them for deduplication";