treewide: rename name to pname&version

This commit is contained in:
Felix Buehler 2022-01-10 23:30:11 +01:00
parent 2ac65dd85b
commit 6cbf83ba01
11 changed files with 19 additions and 19 deletions

View File

@ -12,7 +12,8 @@ with lib;
assert versionAtLeast kernel.version "3.12";
stdenv.mkDerivation {
name = "perf-linux-${kernel.version}";
pname = "perf-linux";
version = kernel.version;
inherit (kernel) src;

View File

@ -1,7 +1,7 @@
{ stdenv, fetchurl, lib }:
stdenv.mkDerivation rec {
name = "kmod-debian-aliases-${version}.conf";
pname = "kmod-debian-aliases.conf";
version = "22-1.1";
src = fetchurl {

View File

@ -1,7 +1,7 @@
{ lib, stdenv, fetchFromGitHub, coreutils, pkg-config, glib, jsoncpp }:
stdenv.mkDerivation rec {
name = "libevdevc";
pname = "libevdevc";
version = "2.0.1";
src = fetchFromGitHub {
owner = "hugegreenbug";

View File

@ -1,7 +1,7 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, glib, jsoncpp }:
stdenv.mkDerivation rec {
name = "libgestures-${version}";
pname = "libgestures";
version = "2.0.1";
src = fetchFromGitHub {
owner = "hugegreenbug";

View File

@ -1,7 +1,7 @@
{ lib, nettools, fetchFromGitHub }:
nettools.overrideAttrs(oa: rec {
name = "net-tools-mptcp";
pname = "net-tools-mptcp";
version = "0.95";
src = fetchFromGitHub {

View File

@ -10,13 +10,12 @@
}:
stdenv.mkDerivation rec {
pkgname = "pommed-light";
pname = "pommed-light";
version = "1.51lw";
name = "${pkgname}-${version}";
src = fetchFromGitHub {
owner = "bytbox";
repo = pkgname;
repo = "pommed-light";
rev = "v${version}";
sha256 = "18fvdwwhcl6s4bpf2f2i389s71c8k4g0yb81am9rdddqmzaw27iy";
};

View File

@ -1,8 +1,8 @@
{ lib, multiStdenv, fetchurl }:
let version = "1.7.4"; in
multiStdenv.mkDerivation {
name = "statifier-${version}";
multiStdenv.mkDerivation rec {
pname = "statifier";
version = "1.7.4";
src = fetchurl {
url = "mirror://sourceforge/statifier/statifier-${version}.tar.gz";

View File

@ -1,9 +1,8 @@
{ lib, stdenv, fetchurl, withoutInitTools ? false }:
let version = "3.01"; in
stdenv.mkDerivation {
name = (if withoutInitTools then "sysvtools" else "sysvinit") + "-" + version;
stdenv.mkDerivation rec {
pname = if withoutInitTools then "sysvtools" else "sysvinit";
version = "3.01";
src = fetchurl {
url = "mirror://savannah/sysvinit/sysvinit-${version}.tar.xz";

View File

@ -1,7 +1,8 @@
{ lib, stdenv, kernel, ncurses }:
stdenv.mkDerivation {
name = "tmon-${kernel.version}";
pname = "tmon";
version = kernel.version;
inherit (kernel) src;

View File

@ -54,7 +54,7 @@ let
in
stdenv.mkDerivation {
name = "uclibc-ng-${version}";
pname = "uclibc-ng";
inherit version;
src = fetchurl {

View File

@ -1,12 +1,12 @@
{ stdenv, lib, fetchFromGitHub, meson, ninja, pkg-config, libseccomp }:
stdenv.mkDerivation rec {
name = "unstick";
pname = "unstick";
version = "0.1.0";
src = fetchFromGitHub {
owner = "kwohlfahrt";
repo = name;
repo = "unstick";
rev = "effee9aa242ca12dc94cc6e96bc073f4cc9e8657";
sha256 = "08la3jmmzlf4pm48bf9zx4cqj9gbqalpqy0s57bh5vfsdk74nnhv";
};