From 9fb8020e4ec2e74e39a8f28dfb3ef18a70bd1eef Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 24 Jan 2016 20:31:44 +0100 Subject: Add version attribute where maintainers |= nckx This will probably be mandatory soon, and is a step in the right direction. Removes the deprecated meta.version, and move some meta sections to the end of the file where I should have put them in the first place. --- pkgs/tools/compression/lz4/default.nix | 3 +-- pkgs/tools/compression/zopfli/default.nix | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'pkgs/tools/compression') diff --git a/pkgs/tools/compression/lz4/default.nix b/pkgs/tools/compression/lz4/default.nix index 13236da5ab44..8340ea3fe8b0 100644 --- a/pkgs/tools/compression/lz4/default.nix +++ b/pkgs/tools/compression/lz4/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchFromGitHub, valgrind }: -let version = "131"; in stdenv.mkDerivation rec { name = "lz4-${version}"; + version = "131"; src = fetchFromGitHub { sha256 = "1bhvcq8fxxsqnpg5qa6k3nsyhq0nl0iarh08sqzclww27hlpyay2"; @@ -23,7 +23,6 @@ stdenv.mkDerivation rec { patches = [ ./install-on-freebsd.patch ] ; meta = with stdenv.lib; { - inherit version; description = "Extremely fast compression algorithm"; longDescription = '' Very fast lossless compression algorithm, providing compression speed diff --git a/pkgs/tools/compression/zopfli/default.nix b/pkgs/tools/compression/zopfli/default.nix index 3c455ca5635f..8aeeb3b9e516 100644 --- a/pkgs/tools/compression/zopfli/default.nix +++ b/pkgs/tools/compression/zopfli/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchFromGitHub, fetchpatch }: -let version = "1.0.1"; in stdenv.mkDerivation rec { name = "zopfli-${version}"; + version = "1.0.1"; src = fetchFromGitHub { owner = "google"; @@ -45,7 +45,6 @@ stdenv.mkDerivation rec { ''; meta = with stdenv.lib; { - inherit version; inherit (src.meta) homepage; description = "Very good, but slow, deflate or zlib compression"; longDescription = '' -- cgit 1.4.1