treewide: name -> pname (easy cases) (#66585)

treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
This commit is contained in:
volth
2019-08-15 13:41:18 +01:00
committed by Jörg Thalheim
parent cff9e6429a
commit 46420bbaa3
4616 changed files with 5674 additions and 6081 deletions
+4 -4
View File
@@ -1,11 +1,11 @@
{ stdenv, fetchurl, libjpeg }:
stdenv.mkDerivation rec {
name = "jhead-${version}";
pname = "jhead";
version = "3.03";
src = fetchurl {
url = "http://www.sentex.net/~mwandel/jhead/${name}.tar.gz";
url = "http://www.sentex.net/~mwandel/jhead/${pname}-${version}.tar.gz";
sha256 = "1hn0yqcicq3qa20h1g313l1a671r8mccpb9gz0w1056r500lw6c2";
};
@@ -24,11 +24,11 @@ stdenv.mkDerivation rec {
mkdir -p \
$out/bin \
$out/man/man1 \
$out/share/doc/${name}
$out/share/doc/${pname}-${version}
cp -v jhead $out/bin
cp -v jhead.1 $out/man/man1
cp -v *.txt $out/share/doc/${name}
cp -v *.txt $out/share/doc/${pname}-${version}
'';
meta = with stdenv.lib; {