mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
infnoise: use finalAttrs.finalPackage
This commit is contained in:
parent
039acd3e8b
commit
5968338068
@ -1,7 +1,7 @@
|
||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, libftdi
|
||||
, infnoise, testers }:
|
||||
, testers }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "infnoise";
|
||||
version = "0.3.2";
|
||||
|
||||
@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
|
||||
})
|
||||
];
|
||||
|
||||
GIT_COMMIT = src.rev;
|
||||
GIT_VERSION = version;
|
||||
GIT_COMMIT = finalAttrs.src.rev;
|
||||
GIT_VERSION = finalAttrs.version;
|
||||
GIT_DATE = "2019-08-12";
|
||||
|
||||
buildInputs = [ libftdi ];
|
||||
@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests.version = testers.testVersion { package = infnoise; };
|
||||
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
@ -57,4 +57,4 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with maintainers; [ StijnDW zhaofengli ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user