vcsh: use finalAttrs
This commit is contained in:
@@ -8,12 +8,12 @@
|
||||
perlPackages,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "vcsh";
|
||||
version = "2.0.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/RichiH/vcsh/releases/download/v${version}/${pname}-${version}.tar.xz";
|
||||
url = "https://github.com/RichiH/vcsh/releases/download/v${finalAttrs.version}/vcsh-${finalAttrs.version}.tar.xz";
|
||||
sha256 = "sha256-VgRA3v5PIKwizmXoc8f/YMoMCDGFJK/m2uhq3EsT1xQ=";
|
||||
};
|
||||
|
||||
@@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
description = "Version Control System for $HOME";
|
||||
homepage = "https://github.com/RichiH/vcsh";
|
||||
changelog = "https://github.com/RichiH/vcsh/blob/v${version}/changelog";
|
||||
changelog = "https://github.com/RichiH/vcsh/blob/v${finalAttrs.version}/changelog";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [
|
||||
ttuegel
|
||||
@@ -50,4 +50,4 @@ stdenv.mkDerivation rec {
|
||||
platforms = lib.platforms.unix;
|
||||
mainProgram = "vcsh";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user