pkgs/tools: use pname&version instead of name
This commit is contained in:
parent
4f6849f7c4
commit
22dffe27f3
37 changed files with 70 additions and 77 deletions
|
@ -1,13 +1,12 @@
|
|||
{ lib, stdenv, fetchFromGitHub, python3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
program = "dex";
|
||||
name = "${program}-${version}";
|
||||
pname = "dex";
|
||||
version = "0.9.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jceb";
|
||||
repo = program;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "03aapcywnz4kl548cygpi25m8adwbmqlmwgxa66v4156ax9dqs86";
|
||||
};
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{ lib, stdenv, fetchurl, libX11, libXrandr }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "sct";
|
||||
pname = "sct";
|
||||
version = "unstable-2015-11-16";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.tedunangst.com/flak/files/sct.c";
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "virtualgl-${lib.getVersion virtualglLib}";
|
||||
pname = "virtualgl";
|
||||
version = lib.getVersion virtualglLib;
|
||||
|
||||
paths = [ virtualglLib ];
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ let
|
|||
in
|
||||
stdenv.mkDerivation rec {
|
||||
version = "5.133";
|
||||
name = "byobu-" + version;
|
||||
pname = "byobu";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://launchpad.net/byobu/trunk/${version}/+download/byobu_${version}.orig.tar.gz";
|
||||
|
|
|
@ -1,17 +1,14 @@
|
|||
{ lib, stdenv, fetchFromGitHub, curl, jansson, autoconf, automake
|
||||
, aesni ? stdenv.hostPlatform.aesSupport }:
|
||||
|
||||
let
|
||||
rev = "8393e03089c0abde61bd5d72aba8f926c3d6eca4";
|
||||
date = "20160316";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "cpuminer-multi-${date}-${lib.strings.substring 0 7 rev}";
|
||||
pname = "cpuminer-multi";
|
||||
version = "unstable-2016-03-16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hyc";
|
||||
repo = "cpuminer-multi";
|
||||
inherit rev;
|
||||
rev = "8393e03089c0abde61bd5d72aba8f926c3d6eca4";
|
||||
sha256 = "11dg4rra4dgfb9x6q85irn0hrkx2lkwyrdpgdh10pag09s3vhy4v";
|
||||
};
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fx_cast_bridge-${version}";
|
||||
pname = "fx_cast_bridge";
|
||||
version = "0.1.2";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
|
|
|
@ -2,10 +2,9 @@
|
|||
, enableGUI ? false, qtbase ? null
|
||||
}:
|
||||
|
||||
let version = "1.4.2"; in
|
||||
|
||||
mkDerivation {
|
||||
name = "heimdall-${if enableGUI then "gui-" else ""}${version}";
|
||||
mkDerivation rec {
|
||||
pname = "heimdall${lib.optionalString enableGUI "-gui"}";
|
||||
version = "1.4.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Benjamin-Dobell";
|
||||
|
@ -15,7 +14,8 @@ mkDerivation {
|
|||
};
|
||||
|
||||
buildInputs = [
|
||||
zlib libusb1
|
||||
zlib
|
||||
libusb1
|
||||
] ++ lib.optional enableGUI qtbase;
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
|
@ -44,10 +44,10 @@ mkDerivation {
|
|||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.glassechidna.com.au/products/heimdall/";
|
||||
homepage = "http://www.glassechidna.com.au/products/heimdall/";
|
||||
description = "A cross-platform tool suite to flash firmware onto Samsung Galaxy S devices";
|
||||
license = licenses.mit;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
platforms = platforms.unix;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, stdenv, fetchFromGitHub, jre, makeWrapper, ant, jdk }:
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.2.1";
|
||||
name = "jugglinglab";
|
||||
pname = "jugglinglab";
|
||||
src = fetchFromGitHub {
|
||||
owner = "jkboyce";
|
||||
repo = "jugglinglab";
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# support for 64-bit yet: it requires libc6-dev:i386, libreadline-dev:i386.
|
||||
|
||||
stdenv_32bit.mkDerivation rec {
|
||||
name = "loadlibrary-${version}";
|
||||
pname = "loadlibrary";
|
||||
version = "20170525-${lib.strings.substring 0 7 rev}";
|
||||
rev = "721b084c088d779075405b7f20c77c2578e2a961";
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -11,10 +11,10 @@ with lib;
|
|||
|
||||
let this = stdenv.mkDerivation rec {
|
||||
version = elk6Version;
|
||||
name = "logstash-${optionalString (!enableUnfree) "oss-"}${version}";
|
||||
pname = "logstash${optionalString (!enableUnfree) "-oss"}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://artifacts.elastic.co/downloads/logstash/${name}.tar.gz";
|
||||
url = "https://artifacts.elastic.co/downloads/logstash/${pname}-${version}.tar.gz";
|
||||
sha256 =
|
||||
if enableUnfree
|
||||
then "00pwi7clgdflzzg15bh3y30gzikvvy7p5fl88fww7xhhy47q8053"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{ lib, stdenv, fetchFromGitHub, libusb1, pkg-config }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "OpenCorsairLink-${version}";
|
||||
version = "2019-12-23";
|
||||
pname = "OpenCorsairLink";
|
||||
version = "unstable-2019-12-23";
|
||||
|
||||
buildInputs = [ libusb1 ];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, stdenv, fetchFromGitHub, python3, texinfo, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ponysay";
|
||||
pname = "ponysay";
|
||||
version = "unstable-2021-03-27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub, gnumake, qmake }:
|
||||
|
||||
mkDerivation rec {
|
||||
name = "veikk-linux-driver-gui";
|
||||
pname = "veikk-linux-driver-gui";
|
||||
version = "2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jlam55555";
|
||||
repo = name;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "02g1q79kwjlzg95w38a1d7nxvcry8xcsvhax2js4c7xqvzhkki5j";
|
||||
};
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
{ lib, stdenv, fetchurl, libXScrnSaver, libX11 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
version = "9.2.4";
|
||||
name = "x11idle-org-${version}";
|
||||
pname = "x11idle-org";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://code.orgmode.org/bzg/org-mode/raw/release_${version}/contrib/scripts/x11idle.c";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, stdenv, fetchgit, ronn, mount }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "atinout-${version}";
|
||||
pname = "atinout";
|
||||
version = "0.9.2-alpha";
|
||||
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.cc.isClang) "-Werror=implicit-fallthrough=0";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "bacnet-stack";
|
||||
pname = "bacnet-stack";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, stdenv, fetchurl, bison, lzo, db4 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "netboot";
|
||||
pname = "netboot";
|
||||
version = "0.10.2";
|
||||
|
||||
src = fetchurl {
|
||||
|
|
|
@ -16,8 +16,8 @@ let versions = lib.importJSON ./versions.json;
|
|||
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "ngrok-${version}";
|
||||
version = version;
|
||||
pname = "ngrok";
|
||||
inherit version;
|
||||
|
||||
# run ./update
|
||||
src = fetchurl { inherit sha256 url; };
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
{ stdenv, lib, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${program}-${version}";
|
||||
program = "prettyping";
|
||||
pname = "prettyping";
|
||||
version = "1.0.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "denilsonsa";
|
||||
repo = program;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "05vfaq9y52z40245j47yjk1xaiwrazv15sgjq64w91dfyahjffxf";
|
||||
};
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
{ lib, stdenv, fetchFromGitHub, libevent }:
|
||||
|
||||
let
|
||||
pkg = "redsocks";
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "redsocks";
|
||||
version = "0.5";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "${pkg}-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "darkk";
|
||||
repo = pkg;
|
||||
repo = "redsocks";
|
||||
rev = "release-${version}";
|
||||
sha256 = "170cpvvivb6y2kwsqj9ppx5brgds9gkn8mixrnvj8z9c15xhvplm";
|
||||
};
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
{ lib, stdenv, fetchurl, ppp } :
|
||||
let
|
||||
version = "3.12";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "rp-pppoe-" + version;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rp-pppoe";
|
||||
version = "3.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.roaringpenguin.com/files/download/rp-pppoe-${version}.tar.gz";
|
||||
sha256 = "1hl6rjvplapgsyrap8xj46kc9kqwdlm6ya6gp3lv0ihm0c24wy80";
|
||||
|
@ -11,7 +12,6 @@ stdenv.mkDerivation {
|
|||
|
||||
buildInputs = [ ppp ];
|
||||
|
||||
|
||||
preConfigure = ''
|
||||
cd src
|
||||
export PPPD=${ppp}/sbin/pppd
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
{ lib, fetchFromGitHub, rustPlatform }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
name = "tdns-cli";
|
||||
pname = "tdns-cli";
|
||||
version = "0.0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rotty";
|
||||
repo = name;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0nn036in5j1h0vxkwif0lf7fn900zy4f4kxlzy6qdx3jakgmxvwh";
|
||||
};
|
||||
|
||||
cargoSha256 = "14mmfj5my8gbsdhlhz17w8wjcc085c6dkj78kwr2hhsbcxp1vjgg";
|
||||
cargoSha256 = "sha256-O4n38dla2WgZ4949Ata6AYbZF9LMnXDyuFNoXRrTN7I=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "DNS tool that aims to replace dig and nsupdate";
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "toxvpn";
|
||||
pname = "toxvpn";
|
||||
version = "unstable-2019-09-09";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
{ lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "waitron-unstable-${version}";
|
||||
version = "2020-01-24";
|
||||
pname = "waitron";
|
||||
version = "unstable-2020-01-24";
|
||||
rev = "c96833619cbb0cf2bc71b1d7b534101e139cc6e6";
|
||||
|
||||
goPackagePath = "github.com/ns1/waitron";
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "unstable-2020-11-02";
|
||||
name = "dydisnix-${version}";
|
||||
pname = "dydisnix";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "svanderburg";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, python3Packages, fetchurl, git }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
name = "nox-${version}";
|
||||
pname = "nox";
|
||||
version = "0.0.6";
|
||||
namePrefix = "";
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{ stdenv, gnupg, coreutils, writeScript }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "gnupg1compat-${gnupg.version}";
|
||||
pname = "gnupg1compat";
|
||||
version = gnupg.version;
|
||||
|
||||
builder = writeScript "gnupg1compat-builder" ''
|
||||
PATH=${coreutils}/bin
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "srm-" + version;
|
||||
pname = "srm";
|
||||
version = "1.2.15";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/srm/${version}/${name}.tar.gz";
|
||||
url = "mirror://sourceforge/project/srm/${version}/srm-${version}.tar.gz";
|
||||
sha256 = "10sjarhprs6s4zandndg720528rcnd4xk8dl48pjj7li1q9c30vm";
|
||||
};
|
||||
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
{ lib, stdenv, fetchurl, openssl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
baseName = "ipmiutil";
|
||||
pname = "ipmiutil";
|
||||
version = "3.1.6";
|
||||
name = "${baseName}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/${baseName}/${name}.tar.gz";
|
||||
url = "mirror://sourceforge/project/ipmiutil/pmiutil-${version}.tar.gz";
|
||||
sha256 = "0jlfb4firph3hc0854n7cw7yjwlax3wdxn37r2jl0l94dj684548";
|
||||
};
|
||||
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
{ lib, fetchFromGitHub, python2Packages }:
|
||||
|
||||
python2Packages.buildPythonApplication rec {
|
||||
program = "grin";
|
||||
pname = "grin";
|
||||
version = "1.2.1";
|
||||
name = "${program}-${version}";
|
||||
namePrefix = "";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rkern";
|
||||
repo = program;
|
||||
repo = pname;
|
||||
rev = "8dd4b5309b3bc04fe9d3e71836420f7d8d4a293f";
|
||||
sha256 = "0vz2aahwdcy1296g4w3i79dkvmzk9jc2n2zmlcvlg5m3s6h7b6jd";
|
||||
};
|
||||
|
|
|
@ -4,7 +4,8 @@ let
|
|||
mecab-base = import ./base.nix { inherit fetchurl; };
|
||||
in
|
||||
stdenv.mkDerivation (mecab-base // {
|
||||
name = "mecab-${mecab-base.version}";
|
||||
pname = "mecab";
|
||||
version = mecab-base.version;
|
||||
|
||||
postInstall = ''
|
||||
sed -i 's|^dicdir = .*$|dicdir = ${mecab-ipadic}|' "$out/etc/mecabrc"
|
||||
|
|
|
@ -4,5 +4,6 @@ let
|
|||
mecab-base = import ./base.nix { inherit fetchurl; };
|
||||
in
|
||||
stdenv.mkDerivation (mecab-base // {
|
||||
name = "mecab-nodic-${mecab-base.version}";
|
||||
pname = "mecab-nodic";
|
||||
version = mecab-base.version;
|
||||
})
|
||||
|
|
|
@ -9,7 +9,8 @@ let
|
|||
gemset = ./gemset.nix;
|
||||
};
|
||||
in stdenv.mkDerivation {
|
||||
name = "papertrail-${(import ./gemset.nix).papertrail.version}";
|
||||
pname = "papertrail";
|
||||
version = (import ./gemset.nix).papertrail.version;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, stdenv, fetchurl, gnum4 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "jade-${version}-${debpatch}";
|
||||
pname = "jade";
|
||||
version = "1.2.1";
|
||||
debpatch = "47.3";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ stdenv, lib, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "smu";
|
||||
pname = "smu";
|
||||
version = "1.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ stdenv, lib, rpmextract, fetchurl, python2, tree }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ec2-utils";
|
||||
pname = "ec2-utils";
|
||||
version = "0.5.1";
|
||||
|
||||
# The url can be determined by booting an "Amazon Linux 2" and running:
|
||||
|
|
|
@ -4,13 +4,12 @@
|
|||
, enableShells ? [ "bash" "zsh" "fish" "sh" "posh" ]
|
||||
}:
|
||||
nimPackages.buildNimPackage rec{
|
||||
|
||||
name = "swaycwd";
|
||||
pname = "swaycwd";
|
||||
version = "0.0.2";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "cab404";
|
||||
repo = name;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-OZWOPtOqcX+fVQCxWntrn98EzFu70WH55rfYCPDMSKk=";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue