3
0
Fork 0
forked from mirrors/nixpkgs

treewide: use pname&version instead of name

This commit is contained in:
Felix Buehler 2021-12-07 20:40:23 +01:00
parent e5a24a242d
commit b5e0221e44
8 changed files with 21 additions and 17 deletions

View file

@ -5,14 +5,16 @@
, klibc
}:
stdenv.mkDerivation rec {
name = "v86d-${version}-${kernel.version}";
version = "0.1.10";
let
pversion = "0.1.10";
in stdenv.mkDerivation rec {
pname = "v86d";
version = "${pversion}-${kernel.version}";
src = fetchFromGitHub {
owner = "mjanusz";
repo = "v86d";
rev = "v86d-${version}";
rev = "v86d-${pversion}";
hash = "sha256-95LRzVbO/DyddmPwQNNQ290tasCGoQk7FDHlst6LkbA=";
};

View file

@ -1,8 +1,8 @@
{ stdenv, fetchFromGitHub, kernel, lib }:
stdenv.mkDerivation rec {
name = "vendor-reset-${version}-${kernel.version}";
version = "unstable-2021-02-16";
pname = "vendor-reset";
version = "unstable-2021-02-16-${kernel.version}";
src = fetchFromGitHub {
owner = "gnif";

View file

@ -1,7 +1,8 @@
{ stdenv, virtualbox, kernel }:
stdenv.mkDerivation {
name = "virtualbox-modules-${virtualbox.version}-${kernel.version}";
pname = "virtualbox-modules";
version = "${virtualbox.version}-${kernel.version}";
src = virtualbox.modsrc;
hardeningDisable = [
"fortify" "pic" "stackprotector"

View file

@ -1,7 +1,8 @@
{ lib, stdenv, kernel }:
stdenv.mkDerivation {
name = "x86_energy_perf_policy-${kernel.version}";
pname = "x86_energy_perf_policy";
version = kernel.version;
src = kernel.src;

View file

@ -23,8 +23,9 @@ let
in
stdenv.mkDerivation {
name = "openafs-${version}-${kernel.modDirVersion}";
inherit version src;
pname = "openafs";
version = "${version}-${kernel.modDirVersion}";
inherit src;
nativeBuildInputs = [ autoconf automake flex libtool_2 perl which bison ]
++ kernel.moduleBuildDependencies;

View file

@ -10,8 +10,9 @@ let
kernelBuildDir = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
in stdenv.mkDerivation {
name = "openafs-${version}-${kernel.modDirVersion}";
inherit version src;
pname = "openafs";
version = "${version}-${kernel.modDirVersion}";
inherit src;
nativeBuildInputs = [ autoconf automake flex libtool_2 perl which bison ]
++ kernel.moduleBuildDependencies;

View file

@ -1,7 +1,7 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "zsh-better-npm-completion";
pname = "zsh-better-npm-completion";
version = "unstable-2019-11-19";
src = fetchFromGitHub {

View file

@ -1,10 +1,8 @@
{ lib, stdenv, fetchFromGitHub, perl }:
let
stdenv.mkDerivation rec {
pname = "deer";
version = "1.4";
name = "deer-${version}";
in stdenv.mkDerivation {
inherit name;
src = fetchFromGitHub {
owner = "Vifon";