duperemove: set version string
This commit is contained in:
parent
187c660416
commit
d437fcbefd
1 changed files with 11 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, libgcrypt
|
{ lib, stdenv, fetchFromGitHub, libgcrypt
|
||||||
, pkg-config, glib, linuxHeaders ? stdenv.cc.libc.linuxHeaders, sqlite
|
, pkg-config, glib, linuxHeaders ? stdenv.cc.libc.linuxHeaders, sqlite
|
||||||
, util-linux }:
|
, util-linux, testers, duperemove }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "duperemove";
|
pname = "duperemove";
|
||||||
|
@ -21,7 +21,16 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ libgcrypt glib linuxHeaders sqlite ];
|
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; {
|
meta = with lib; {
|
||||||
description = "A simple tool for finding duplicated extents and submitting them for deduplication";
|
description = "A simple tool for finding duplicated extents and submitting them for deduplication";
|
||||||
|
|
Loading…
Reference in a new issue