treewide: rename name to pname&version

This commit is contained in:
Felix Buehler 2022-01-22 18:13:29 +01:00
parent 3562adbcec
commit 027d353491
18 changed files with 36 additions and 31 deletions

View File

@ -2,7 +2,7 @@
, python3Packages, gtk3, glib, libxml2, gnuplot, gnome, gdk-pixbuf, librsvg, intltool, libmirage }:
let pkg = import ./base.nix {
version = "3.2.5";
pkgName = "image-analyzer";
pname = "image-analyzer";
pkgSha256 = "00906lky0z1m0bdqnjmzxgcb19dzvljhddhh42lixyr53sjp94cc";
};
in callPackage pkg {

View File

@ -1,10 +1,9 @@
{ pkgName, version, pkgSha256 }:
{ pname, version, pkgSha256 }:
{ lib, stdenv, fetchurl, cmake, pkg-config, buildInputs, drvParams ? {} }:
let name = "${pkgName}-${version}";
in stdenv.mkDerivation ({
inherit name buildInputs;
stdenv.mkDerivation ( rec {
inherit pname version buildInputs;
src = fetchurl {
url = "mirror://sourceforge/cdemu/${name}.tar.xz";
url = "mirror://sourceforge/cdemu/${pname}-${version}.tar.xz";
sha256 = pkgSha256;
};
nativeBuildInputs = [ pkg-config cmake ];
@ -14,7 +13,7 @@ in stdenv.mkDerivation ({
sourceRoot="`pwd`"
'';
configurePhase = ''
cmake ../${name} -DCMAKE_INSTALL_PREFIX=$out -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=ON
cmake ../${pname}-${version} -DCMAKE_INSTALL_PREFIX=$out -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=ON
'';
meta = with lib; {
description = "A suite of tools for emulating optical drives and discs";

View File

@ -1,7 +1,7 @@
{ callPackage, python3Packages, intltool, makeWrapper }:
let pkg = import ./base.nix {
version = "3.2.5";
pkgName = "cdemu-client";
pname = "cdemu-client";
pkgSha256 = "1prrdhv0ia0axc6b73crszqzh802wlkihz6d100yvg7wbgmqabd7";
};
in callPackage pkg {

View File

@ -1,7 +1,7 @@
{ callPackage, glib, libao, intltool, libmirage }:
let pkg = import ./base.nix {
version = "3.2.5";
pkgName = "cdemu-daemon";
pname = "cdemu-daemon";
pkgSha256 = "16g6fv1lxkdmbsy6zh5sj54dvgwvm900fd18aq609yg8jnqm644d";
};
in callPackage pkg {

View File

@ -3,7 +3,7 @@
let
pkg = import ./base.nix {
version = "3.2.5";
pkgName = "gcdemu";
pname = "gcdemu";
pkgSha256 = "1nvpbq4mz8caw91q5ny9gf206g9bypavxws9nxyfcanfkc4zfkl4";
};
inherit (python3Packages) python pygobject3;

View File

@ -4,7 +4,7 @@
let pkg = import ./base.nix {
version = "3.2.5";
pkgName = "libmirage";
pname = "libmirage";
pkgSha256 = "0f8i2ha44rykkk3ac2q8zsw3y1zckw6qnf6zvkyrj3qqbzhrf3fm";
};
in callPackage pkg {

View File

@ -1,7 +1,8 @@
{ fetchFromGitHub, lib, stdenv, cmake, qt4 }:
stdenv.mkDerivation {
name = "resim";
pname = "resim";
version = "unstable-2016-11-11";
src = fetchFromGitHub {
owner = "itszor";
repo = "resim";

View File

@ -2,7 +2,8 @@
, cabextract, unzip, p7zip, gnused, gnugrep, bash } :
stdenv.mkDerivation rec {
name = "winetricks-${src.version}";
pname = "winetricks";
version = src.version;
src = (callPackage ./sources.nix {}).winetricks;

View File

@ -10,9 +10,9 @@
}:
stdenv.mkDerivation {
name = "gnuk-${version}-${device}";
pname = "gnuk-${device}";
inherit src;
inherit version src;
nativeBuildInputs = [ gcc-arm-embedded binutils-arm-embedded makeWrapper ];
buildInputs = with python3Packages; [ python pyusb colorama ];

View File

@ -2,8 +2,8 @@
, libX11, pam, libgcrypt, libXrender, imlib2 }:
stdenv.mkDerivation rec {
date = "20170720";
name = "alock-${date}";
pname = "alock";
version = "unstable-2017-07-20";
src = fetchgit {
url = "https://github.com/Arkq/alock";

View File

@ -1,14 +1,13 @@
{ lib, stdenv, fetchFromGitHub, glib, pkg-config, xorg, dbus }:
let rev = "1.0.0"; in
stdenv.mkDerivation {
name = "xssproxy-${rev}";
stdenv.mkDerivation rec {
pname = "xssproxy";
version = "1.0.0";
src = fetchFromGitHub {
owner = "timakro";
repo = "xssproxy";
rev = "v${rev}";
rev = "v${version}";
sha256 = "0c83wmipnsdnbihc5niyczs7jrkss2s8n6iwwjdia7hkjzbd0hl7";
};

View File

@ -1,7 +1,8 @@
{ lib, stdenvNoCC, raspberrypifw }:
stdenvNoCC.mkDerivation {
name = "raspberrypi-dtbs-${raspberrypifw.version}";
pname = "raspberrypi-dtbs";
version = raspberrypifw.version;
nativeBuildInputs = [ raspberrypifw ];
# Rename DTBs so u-boot finds them, like linux-rpi.nix

View File

@ -1,7 +1,8 @@
{ lib, stdenv, linuxPackages }:
with lib;
stdenv.mkDerivation {
name = "rtl8723bs-firmware-${linuxPackages.rtl8723bs.version}";
pname = "rtl8723bs-firmware";
version = linuxPackages.rtl8723bs.version;
inherit (linuxPackages.rtl8723bs) src;
dontBuild = true;

View File

@ -1,8 +1,8 @@
{ lib, stdenv, fetchurl }:
let version = "20141203"; in
stdenv.mkDerivation {
name = "hdapsd-"+version;
stdenv.mkDerivation rec {
pname = "hdapsd";
version = "20141203";
src = fetchurl {
url = "https://github.com/evgeni/hdapsd/releases/download/${version}/hdapsd-${version}.tar.gz";

View File

@ -14,7 +14,7 @@ let
in
stdenv.mkDerivation rec {
name = "${package}-${version}";
pname = package;
version = "0.5.7";
src = fetchFromGitHub {

View File

@ -5,7 +5,8 @@ let
in
stdenv.mkDerivation {
name = "jool-cli-${sourceAttrs.version}";
pname = "jool-cli";
version = sourceAttrs.version;
src = sourceAttrs.src;

View File

@ -5,7 +5,8 @@ with lib;
assert versionAtLeast linux.version "4.6";
stdenv.mkDerivation {
name = "gpio-utils-${linux.version}";
pname = "gpio-utils";
version = linux.version;
inherit (linux) src makeFlags;

View File

@ -1,7 +1,8 @@
{ lib, stdenv, linux-firmware, libarchive }:
stdenv.mkDerivation {
name = "amd-ucode-${linux-firmware.version}";
pname = "amd-ucode";
version = linux-firmware.version;
src = linux-firmware;