various: cleanup of 'inherit version;'

This commit is contained in:
Felix Buehler 2021-07-14 17:10:11 +02:00
parent b141a58ff2
commit 1e9baed56b
56 changed files with 127 additions and 232 deletions

View file

@ -1,11 +1,8 @@
{ lib, stdenv, fetchurl, automake, autoconf }: { lib, stdenv, fetchurl, automake, autoconf }:
let stdenv.mkDerivation rec {
version = "2.0.0";
in
stdenv.mkDerivation {
pname = "avr-libc"; pname = "avr-libc";
inherit version; version = "2.0.0";
src = fetchurl { src = fetchurl {
url = "https://download.savannah.gnu.org/releases/avr-libc/avr-libc-2.0.0.tar.bz2"; url = "https://download.savannah.gnu.org/releases/avr-libc/avr-libc-2.0.0.tar.bz2";

View file

@ -9,14 +9,10 @@
"OMNINXT" # 3.4.0-rc4: has not specified a valid STM group, must be one of F1, F3, F405, F411 or F7x5. Have you prepared a valid target.mk? "OMNINXT" # 3.4.0-rc4: has not specified a valid STM group, must be one of F1, F3, F405, F411 or F7x5. Have you prepared a valid target.mk?
]}: ]}:
let stdenv.mkDerivation rec {
version = "3.4.0-rc4";
in stdenv.mkDerivation rec {
pname = "betaflight"; pname = "betaflight";
inherit version; version = "3.4.0-rc4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "betaflight"; owner = "betaflight";

View file

@ -2,14 +2,10 @@
, gcc-arm-embedded, binutils-arm-embedded, ruby , gcc-arm-embedded, binutils-arm-embedded, ruby
}: }:
let stdenv.mkDerivation rec {
version = "2.0.0-rc2";
in stdenv.mkDerivation rec {
pname = "inav"; pname = "inav";
inherit version; version = "2.0.0-rc2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "iNavFlight"; owner = "iNavFlight";

View file

@ -1,11 +1,8 @@
{ lib, stdenv, fetchFromGitHub, coreutils, cpio, findutils, gzip, makeWrapper, util-linux }: { lib, stdenv, fetchFromGitHub, coreutils, cpio, findutils, gzip, makeWrapper, util-linux }:
let stdenv.mkDerivation rec {
version = "0.6";
in
stdenv.mkDerivation {
pname = "abootimg"; pname = "abootimg";
inherit version; version = "0.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ggrandou"; owner = "ggrandou";

View file

@ -86,6 +86,5 @@ stdenv.mkDerivation rec {
license = lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ raskin makefu mic92 ]; maintainers = with lib.maintainers; [ raskin makefu mic92 ];
platforms = with lib.platforms; linux; platforms = with lib.platforms; linux;
inherit version;
}; };
} }

View file

@ -1,12 +1,9 @@
{ lib, stdenv, fetchurl, readline, bison }: { lib, stdenv, fetchurl, readline, bison }:
let stdenv.mkDerivation rec {
version = "0.9.1";
in
stdenv.mkDerivation {
pname = "es"; pname = "es";
inherit version; version = "0.9.1";
src = fetchurl { src = fetchurl {
url = "https://github.com/wryun/es-shell/releases/download/v${version}/es-${version}.tar.gz"; url = "https://github.com/wryun/es-shell/releases/download/v${version}/es-${version}.tar.gz";

View file

@ -1,23 +1,19 @@
{ lib, stdenv, fetchurl, ncurses, pcre, buildPackages }: { lib, stdenv, fetchurl, ncurses, pcre, buildPackages }:
let stdenv.mkDerivation rec {
version = "5.8";
documentation = fetchurl {
url = "mirror://sourceforge/zsh/zsh-${version}-doc.tar.xz";
sha256 = "1i6wdzq6rfjx5yjrpzan1jf50hk2pfzy5qib9mb7cnnbjfar6klv";
};
in
stdenv.mkDerivation {
pname = "zsh"; pname = "zsh";
inherit version; version = "5.8";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/zsh/zsh-${version}.tar.xz"; url = "mirror://sourceforge/zsh/zsh-${version}.tar.xz";
sha256 = "09yyaadq738zlrnlh1hd3ycj1mv3q5hh4xl1ank70mjnqm6bbi6w"; sha256 = "09yyaadq738zlrnlh1hd3ycj1mv3q5hh4xl1ank70mjnqm6bbi6w";
}; };
documentation = fetchurl {
url = "mirror://sourceforge/zsh/zsh-${version}-doc.tar.xz";
sha256 = "1i6wdzq6rfjx5yjrpzan1jf50hk2pfzy5qib9mb7cnnbjfar6klv";
};
buildInputs = [ ncurses pcre ]; buildInputs = [ ncurses pcre ];
configureFlags = [ configureFlags = [

View file

@ -1,12 +1,8 @@
{ lib, stdenv, fetchFromGitHub }: { lib, stdenv, fetchFromGitHub }:
let stdenv.mkDerivation rec {
version = "0.4.4";
in
stdenv.mkDerivation {
pname = "nix-zsh-completions"; pname = "nix-zsh-completions";
inherit version; version = "0.4.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "spwhitt"; owner = "spwhitt";

View file

@ -16,7 +16,6 @@ stdenv.mkDerivation rec {
''; '';
meta = { meta = {
inherit version;
homepage = "https://www.nongnu.org/autocutsel/"; homepage = "https://www.nongnu.org/autocutsel/";
description = "Tracks changes in the server's cutbuffer and CLIPBOARD selection"; description = "Tracks changes in the server's cutbuffer and CLIPBOARD selection";
license = lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;

View file

@ -33,8 +33,6 @@
}: }:
let let
version = "3.2.1";
nvidia_x11s = [ nvidia_x11 ] nvidia_x11s = [ nvidia_x11 ]
++ lib.optional nvidia_x11.useGLVND libglvnd ++ lib.optional nvidia_x11.useGLVND libglvnd
++ lib.optionals (nvidia_x11_i686 != null) ++ lib.optionals (nvidia_x11_i686 != null)
@ -57,7 +55,7 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "bumblebee"; pname = "bumblebee";
inherit version; version = "3.2.1";
src = fetchurl { src = fetchurl {
url = "https://bumblebee-project.org/${pname}-${version}.tar.gz"; url = "https://bumblebee-project.org/${pname}-${version}.tar.gz";

View file

@ -1,10 +1,8 @@
{ lib, stdenv, fetchurl, pkg-config, glib, gtkmm2 }: { lib, stdenv, fetchurl, pkg-config, glib, gtkmm2 }:
let version = "1.6.1";
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "nitrogen"; pname = "nitrogen";
inherit version; version = "1.6.1";
src = fetchurl { src = fetchurl {
url = "http://projects.l3ib.org/nitrogen/files/${pname}-${version}.tar.gz"; url = "http://projects.l3ib.org/nitrogen/files/${pname}-${version}.tar.gz";

View file

@ -21,7 +21,6 @@ stdenv.mkDerivation rec {
sed -e "s@/etc/xdg@$out&@" -i Makefile sed -e "s@/etc/xdg@$out&@" -i Makefile
''; '';
meta = { meta = {
inherit version;
description = "Expose-style compositing-based standalone window switcher"; description = "Expose-style compositing-based standalone window switcher";
license = lib.licenses.gpl2Plus ; license = lib.licenses.gpl2Plus ;
maintainers = [lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];

View file

@ -22,7 +22,6 @@ stdenv.mkDerivation rec {
''; '';
meta = { meta = {
inherit version;
description = "A gesture control for X11"; description = "A gesture control for X11";
license = lib.licenses.gpl2Plus ; license = lib.licenses.gpl2Plus ;
maintainers = [lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];

View file

@ -13,7 +13,6 @@ stdenv.mkDerivation rec {
buildInputs = [ libX11 ]; buildInputs = [ libX11 ];
meta = { meta = {
inherit version;
description = "A tool to scribble over X windows"; description = "A tool to scribble over X windows";
license = lib.licenses.gpl2Plus ; license = lib.licenses.gpl2Plus ;
maintainers = [lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];

View file

@ -1,9 +1,8 @@
{ lib, stdenv, fetchurl, pkg-config, libpng, libX11, libXext, libXi, libXtst }: { lib, stdenv, fetchurl, pkg-config, libpng, libX11, libXext, libXi, libXtst }:
let version = "1.09"; in stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "xautomation"; pname = "xautomation";
inherit version; version = "1.09";
src = fetchurl { src = fetchurl {
url = "https://www.hoopajoo.net/static/projects/xautomation-${version}.tar.gz"; url = "https://www.hoopajoo.net/static/projects/xautomation-${version}.tar.gz";
sha256 = "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"; sha256 = "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf";

View file

@ -1,9 +1,8 @@
{ lib, stdenv, fetchurl, pkg-config, libX11, guile }: { lib, stdenv, fetchurl, pkg-config, libX11, guile }:
let version = "1.8.7"; in stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "xbindkeys"; pname = "xbindkeys";
inherit version; version = "1.8.7";
src = fetchurl { src = fetchurl {
url = "https://www.nongnu.org/xbindkeys/xbindkeys-${version}.tar.gz"; url = "https://www.nongnu.org/xbindkeys/xbindkeys-${version}.tar.gz";
sha256 = "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"; sha256 = "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2";

View file

@ -15,7 +15,6 @@ stdenv.mkDerivation rec {
buildInputs = [ gtk2 libXdamage ]; buildInputs = [ gtk2 libXdamage ];
meta = { meta = {
inherit version;
description = "X window switcher drawing a colourful grid"; description = "X window switcher drawing a colourful grid";
license = lib.licenses.bsd2 ; license = lib.licenses.bsd2 ;
maintainers = [lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];

View file

@ -1,11 +1,8 @@
{ lib, stdenv, fetchbzr, xlibsWrapper }: { lib, stdenv, fetchbzr, xlibsWrapper }:
let stdenv.mkDerivation rec {
version = "4";
in
stdenv.mkDerivation {
pname = "xwinwrap"; pname = "xwinwrap";
inherit version; version = "4";
src = fetchbzr { src = fetchbzr {
url = "https://code.launchpad.net/~shantanu-goel/xwinwrap/devel"; url = "https://code.launchpad.net/~shantanu-goel/xwinwrap/devel";

View file

@ -29,7 +29,6 @@ stdenv.mkDerivation rec {
installTargets = [ "install" "install.man" ]; installTargets = [ "install" "install.man" ];
meta = { meta = {
inherit version;
description = "An X11 screen zoom tool"; description = "An X11 screen zoom tool";
license = lib.licenses.free ; license = lib.licenses.free ;
maintainers = [lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];

View file

@ -4,13 +4,10 @@
, lib , lib
}: }:
let buildGoPackage rec{
version = "release-2019-10-13";
in buildGoPackage {
pname = "boulder"; pname = "boulder";
inherit version; version = "release-2019-10-13";
goPackagePath = "github.com/letsencrypt/boulder"; goPackagePath = "github.com/letsencrypt/boulder";

View file

@ -1,11 +1,8 @@
{ lib, stdenv, fetchurl, libdvdread, pkg-config }: { lib, stdenv, fetchurl, libdvdread, pkg-config }:
let stdenv.mkDerivation rec {
version = "0.17";
in
stdenv.mkDerivation {
pname = "lsdvd"; pname = "lsdvd";
inherit version; version = "0.17";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/lsdvd/lsdvd-${version}.tar.gz"; url = "mirror://sourceforge/lsdvd/lsdvd-${version}.tar.gz";
sha256 = "1274d54jgca1prx106iyir7200aflr70bnb1kawndlmcckcmnb3x"; sha256 = "1274d54jgca1prx106iyir7200aflr70bnb1kawndlmcckcmnb3x";

View file

@ -1,12 +1,10 @@
{ stdenv, fetchzip, jam, unzip, libX11, libXxf86vm, libXrandr, libXinerama { stdenv, fetchzip, jam, unzip, libX11, libXxf86vm, libXrandr, libXinerama
, libXrender, libXext, libtiff, libjpeg, libpng, libXScrnSaver, writeText , libXrender, libXext, libtiff, libjpeg, libpng, libXScrnSaver, writeText
, libXdmcp, libXau, lib, openssl }: , libXdmcp, libXau, lib, openssl }:
let
version = "2.1.2";
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "argyllcms"; pname = "argyllcms";
inherit version; version = "2.1.2";
src = fetchzip { src = fetchzip {
# Kind of flacky URL, it was reaturning 406 and inconsistent binaries for a # Kind of flacky URL, it was reaturning 406 and inconsistent binaries for a

View file

@ -2,17 +2,12 @@
{ lib, stdenv, fetchurl, jre, makeWrapper }: { lib, stdenv, fetchurl, jre, makeWrapper }:
let stdenv.mkDerivation rec {
version = "0.9";
sha256 = "45dd668a9ceb9cd59529a9fefe422a002ee1554a61be07e6fc8b3baf33d733d9";
in stdenv.mkDerivation {
pname = "briss"; pname = "briss";
inherit version; version = "0.9";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/briss/briss-${version}.tar.gz"; url = "mirror://sourceforge/briss/briss-${version}.tar.gz";
inherit sha256; sha256 = "45dd668a9ceb9cd59529a9fefe422a002ee1554a61be07e6fc8b3baf33d733d9";
}; };
nativeBuildInputs = [makeWrapper]; nativeBuildInputs = [makeWrapper];

View file

@ -31,7 +31,6 @@ stdenv.mkDerivation rec {
''; '';
buildInputs = [mono]; buildInputs = [mono];
meta = { meta = {
inherit version;
description = "Bitmap generation from a single example with convolutions and MCMC"; description = "Bitmap generation from a single example with convolutions and MCMC";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = [lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];

View file

@ -11,12 +11,9 @@
, zlib , zlib
}: }:
let stdenv.mkDerivation rec {
version = "0.20";
in
stdenv.mkDerivation {
pname = "mscgen"; pname = "mscgen";
inherit version; version = "0.20";
src = fetchurl { src = fetchurl {
url = "http://www.mcternan.me.uk/mscgen/software/mscgen-src-${version}.tar.gz"; url = "http://www.mcternan.me.uk/mscgen/software/mscgen-src-${version}.tar.gz";

View file

@ -1,13 +1,9 @@
{ lib, stdenv, fetchurl, autoconf, automake, libtool, dos2unix, libpgf, freeimage, doxygen }: { lib, stdenv, fetchurl, autoconf, automake, libtool, dos2unix, libpgf, freeimage, doxygen }:
with lib; with lib;
stdenv.mkDerivation rec {
let
version = "6.14.12";
in
stdenv.mkDerivation {
pname = "pgf"; pname = "pgf";
inherit version; version = "6.14.12";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/libpgf/pgf-console-src-${version}.tar.gz"; url = "mirror://sourceforge/libpgf/pgf-console-src-${version}.tar.gz";

View file

@ -25,7 +25,6 @@ stdenv.mkDerivation rec {
''; '';
buildInputs = [mono]; buildInputs = [mono];
meta = { meta = {
inherit version;
description = "Texture synthesis from examples"; description = "Texture synthesis from examples";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = [lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];

View file

@ -1,11 +1,9 @@
{ lib, stdenv, fetchFromGitHub { lib, stdenv, fetchFromGitHub
, libGL, libGLU, freeglut, libX11 }: , libGL, libGLU, freeglut, libX11 }:
let stdenv.mkDerivation rec {
version = "2018-04-19";
in stdenv.mkDerivation rec {
pname = "twilight"; pname = "twilight";
inherit version; version = "unstable-2018-04-19";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tweakoz"; owner = "tweakoz";

View file

@ -25,7 +25,6 @@ stdenv.mkDerivation rec {
''; '';
buildInputs = [mono]; buildInputs = [mono];
meta = { meta = {
inherit version;
description = "A generator of bitmaps that are locally similar to the input bitmap"; description = "A generator of bitmaps that are locally similar to the input bitmap";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = [lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];

View file

@ -24,7 +24,6 @@ stdenv.mkDerivation rec {
cd "$out/lib/java"; for i in *.jar; do mv "$i" "''${i#*-}"; done cd "$out/lib/java"; for i in *.jar; do mv "$i" "''${i#*-}"; done
''; '';
meta = { meta = {
inherit version;
description = "1D and 2D code reading library"; description = "1D and 2D code reading library";
license = lib.licenses.asl20; license = lib.licenses.asl20;
maintainers = [lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];

View file

@ -4,63 +4,59 @@
, systemd , systemd
, xrandr }: , xrandr }:
let stdenv.mkDerivation rec {
python = python3Packages.python; pname = "autorandr";
version = "1.11"; version = "1.11";
in
stdenv.mkDerivation {
pname = "autorandr";
inherit version;
buildInputs = [ python ]; buildInputs = [ python3Packages.python ];
# no wrapper, as autorandr --batch does os.environ.clear() # no wrapper, as autorandr --batch does os.environ.clear()
buildPhase = '' buildPhase = ''
substituteInPlace autorandr.py \ substituteInPlace autorandr.py \
--replace 'os.popen("xrandr' 'os.popen("${xrandr}/bin/xrandr' \ --replace 'os.popen("xrandr' 'os.popen("${xrandr}/bin/xrandr' \
--replace '["xrandr"]' '["${xrandr}/bin/xrandr"]' --replace '["xrandr"]' '["${xrandr}/bin/xrandr"]'
''; '';
outputs = [ "out" "man" ]; outputs = [ "out" "man" ];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
make install TARGETS='autorandr' PREFIX=$out make install TARGETS='autorandr' PREFIX=$out
make install TARGETS='bash_completion' DESTDIR=$out/share/bash-completion/completions make install TARGETS='bash_completion' DESTDIR=$out/share/bash-completion/completions
make install TARGETS='autostart_config' PREFIX=$out DESTDIR=$out make install TARGETS='autostart_config' PREFIX=$out DESTDIR=$out
make install TARGETS='manpage' PREFIX=$man make install TARGETS='manpage' PREFIX=$man
${if systemd != null then '' ${if systemd != null then ''
make install TARGETS='systemd udev' PREFIX=$out DESTDIR=$out \ make install TARGETS='systemd udev' PREFIX=$out DESTDIR=$out \
SYSTEMD_UNIT_DIR=/lib/systemd/system \ SYSTEMD_UNIT_DIR=/lib/systemd/system \
UDEV_RULES_DIR=/etc/udev/rules.d UDEV_RULES_DIR=/etc/udev/rules.d
substituteInPlace $out/etc/udev/rules.d/40-monitor-hotplug.rules \ substituteInPlace $out/etc/udev/rules.d/40-monitor-hotplug.rules \
--replace /bin/systemctl "/run/current-system/systemd/bin/systemctl" --replace /bin/systemctl "/run/current-system/systemd/bin/systemctl"
'' else '' '' else ''
make install TARGETS='pmutils' DESTDIR=$out \ make install TARGETS='pmutils' DESTDIR=$out \
PM_SLEEPHOOKS_DIR=/lib/pm-utils/sleep.d PM_SLEEPHOOKS_DIR=/lib/pm-utils/sleep.d
make install TARGETS='udev' PREFIX=$out DESTDIR=$out \ make install TARGETS='udev' PREFIX=$out DESTDIR=$out \
UDEV_RULES_DIR=/etc/udev/rules.d UDEV_RULES_DIR=/etc/udev/rules.d
''} ''}
runHook postInstall runHook postInstall
''; '';
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "phillipberndt"; owner = "phillipberndt";
repo = "autorandr"; repo = "autorandr";
rev = version; rev = version;
sha256 = "0rmnqk2bi6bbd2if1rll37mlzlqxzmnazfffdhcpzskxwyaj4yn5"; sha256 = "0rmnqk2bi6bbd2if1rll37mlzlqxzmnazfffdhcpzskxwyaj4yn5";
}; };
meta = with lib; { meta = with lib; {
homepage = "https://github.com/phillipberndt/autorandr/"; homepage = "https://github.com/phillipberndt/autorandr/";
description = "Automatically select a display configuration based on connected devices"; description = "Automatically select a display configuration based on connected devices";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ coroa globin ]; maintainers = with maintainers; [ coroa globin ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }

View file

@ -20,7 +20,6 @@ stdenv.mkDerivation rec {
}; };
meta = with lib; { meta = with lib; {
inherit version;
description = "A fork of CUnit test framework"; description = "A fork of CUnit test framework";
homepage = "https://gitlab.linphone.org/BC/public/bcunit"; homepage = "https://gitlab.linphone.org/BC/public/bcunit";
license = licenses.lgpl2Plus; license = licenses.lgpl2Plus;

View file

@ -19,7 +19,6 @@ stdenv.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
inherit version;
description = "Interactive stack-based calculator"; description = "Interactive stack-based calculator";
homepage = "https://github.com/soveran/clac"; homepage = "https://github.com/soveran/clac";
license = licenses.bsd2; license = licenses.bsd2;

View file

@ -1,12 +1,8 @@
{ lib, stdenv, fetchurl }: { lib, stdenv, fetchurl }:
let stdenv.mkDerivation rec {
version = "3.1.4";
in
stdenv.mkDerivation {
pname = "clasp"; pname = "clasp";
inherit version; version = "3.1.4";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/project/potassco/clasp/${version}/clasp-${version}-source.tar.gz"; url = "mirror://sourceforge/project/potassco/clasp/${version}/clasp-${version}-source.tar.gz";

View file

@ -1,9 +1,8 @@
{ lib, stdenv, fetchFromGitHub }: { lib, stdenv, fetchFromGitHub }:
let version = "0.6";
in stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "cp437"; pname = "cp437";
inherit version; version = "0.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "keaston"; owner = "keaston";

View file

@ -1,8 +1,8 @@
{ stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }: { stdenv, lib, rustPlatform, fetchFromGitHub, ncurses, CoreServices }:
let version = "0.2.7"; in
rustPlatform.buildRustPackage { rustPlatform.buildRustPackage rec {
pname = "dijo"; pname = "dijo";
inherit version; version = "0.2.7";
buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin CoreServices; buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin CoreServices;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "NerdyPepper"; owner = "NerdyPepper";

View file

@ -20,7 +20,6 @@ stdenv.mkDerivation rec {
description = "Scan HDD/SSD for failed and near failed sectors"; description = "Scan HDD/SSD for failed and near failed sectors";
platforms = with platforms; linux; platforms = with platforms; linux;
maintainers = with maintainers; [ peterhoeg ]; maintainers = with maintainers; [ peterhoeg ];
inherit version;
license = licenses.gpl3; license = licenses.gpl3;
}; };
} }

View file

@ -1,9 +1,8 @@
{ lib, stdenv, fetchgit }: { lib, stdenv, fetchgit }:
let
version = "2018-12-06"; stdenv.mkDerivation rec {
in stdenv.mkDerivation {
pname = "edid-decode-unstable"; pname = "edid-decode-unstable";
inherit version; version = "unstable-2018-12-06";
src = fetchgit { src = fetchgit {
url = "git://linuxtv.org/edid-decode.git"; url = "git://linuxtv.org/edid-decode.git";

View file

@ -6,11 +6,10 @@
, zsh , zsh
, modelines ? [] # Modeline "1280x800" 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync , modelines ? [] # Modeline "1280x800" 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync
}: }:
let
version = "unstable-2018-03-15"; stdenv.mkDerivation rec {
in stdenv.mkDerivation {
pname = "edid-generator"; pname = "edid-generator";
inherit version; version = "unstable-2018-03-15";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "akatrevorjay"; owner = "akatrevorjay";

View file

@ -19,7 +19,6 @@ buildGoPackage rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ pSub ]; maintainers = with maintainers; [ pSub ];
platforms = platforms.unix; platforms = platforms.unix;
inherit version;
}; };
} }

View file

@ -3,13 +3,9 @@
libcxx libcxx
}: }:
let stdenv.mkDerivation rec {
version = "4.5.4";
in
stdenv.mkDerivation {
pname = "gringo"; pname = "gringo";
inherit version; version = "4.5.4";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/project/potassco/gringo/${version}/gringo-${version}-source.tar.gz"; url = "mirror://sourceforge/project/potassco/gringo/${version}/gringo-${version}-source.tar.gz";

View file

@ -1,24 +1,23 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, freeglut, libGL, libGLU }: { lib, stdenv, fetchFromGitHub, autoreconfHook, freeglut, libGL, libGLU }:
let version = "0.0.7"; in stdenv.mkDerivation rec {
stdenv.mkDerivation { pname = "hdaps-gl";
pname = "hdaps-gl"; version = "0.0.7";
inherit version; src = fetchFromGitHub {
src = fetchFromGitHub { owner = "linux-thinkpad";
owner = "linux-thinkpad"; repo = "hdaps-gl";
repo = "hdaps-gl"; rev = version;
rev = version; sha256 = "0jywsrcr1wzkjig5cvz014c3r026sbwscbkv7zh1014lkjm0kyyh";
sha256 = "0jywsrcr1wzkjig5cvz014c3r026sbwscbkv7zh1014lkjm0kyyh"; };
};
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ freeglut libGL libGLU ]; buildInputs = [ freeglut libGL libGLU ];
meta = with lib; { meta = with lib; {
description = "GL-based laptop model that rotates in real-time via hdaps"; description = "GL-based laptop model that rotates in real-time via hdaps";
homepage = "https://github.com/linux-thinkpad/hdaps-gl"; homepage = "https://github.com/linux-thinkpad/hdaps-gl";
license = licenses.gpl2; license = licenses.gpl2;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.symphorien ]; maintainers = [ maintainers.symphorien ];
}; };
} }

View file

@ -7,12 +7,11 @@
}: }:
let let
version = "0.48.1";
perl' = perl.withPackages (p: with p; [ ConvertASN1 perlldap AuthenSASL ]); perl' = perl.withPackages (p: with p; [ ConvertASN1 perlldap AuthenSASL ]);
in in
stdenv.mkDerivation { stdenv.mkDerivation rec {
pname = "lbdb"; pname = "lbdb";
inherit version; version = "0.48.1";
src = fetchurl { src = fetchurl {
url = "https://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz"; url = "https://www.spinnaker.de/lbdb/download/lbdb_${version}.tar.gz";
sha256 = "1gr5l2fr9qbdccga8bhsrpvz6jxigvfkdxrln9wyf2xpps5cdjxh"; sha256 = "1gr5l2fr9qbdccga8bhsrpvz6jxigvfkdxrln9wyf2xpps5cdjxh";

View file

@ -24,7 +24,6 @@ stdenv.mkDerivation rec {
description = "Rewrite of unclutter using the X11 Xfixes extension"; description = "Rewrite of unclutter using the X11 Xfixes extension";
platforms = platforms.unix; platforms = platforms.unix;
license = lib.licenses.mit; license = lib.licenses.mit;
inherit version;
maintainers = [ maintainers.globin ]; maintainers = [ maintainers.globin ];
}; };
} }

View file

@ -59,7 +59,6 @@ mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
inherit version;
description = "Cross-platform application for configuring any YubiKey over all USB interfaces"; description = "Cross-platform application for configuring any YubiKey over all USB interfaces";
homepage = "https://developers.yubico.com/yubikey-manager-qt/"; homepage = "https://developers.yubico.com/yubikey-manager-qt/";
license = licenses.bsd2; license = licenses.bsd2;

View file

@ -48,6 +48,5 @@ stdenv.mkDerivation rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ samueldr ]; maintainers = with maintainers; [ samueldr ];
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.linux ++ platforms.darwin;
inherit version;
}; };
} }

View file

@ -2,12 +2,9 @@
, fetchurl, fetchpatch , fetchurl, fetchpatch
}: }:
let python2Packages.buildPythonApplication rec {
version = "1.7";
in python2Packages.buildPythonApplication {
pname = "nixops"; pname = "nixops";
inherit version; version = "1.7";
src = fetchurl { src = fetchurl {
url = "https://nixos.org/releases/nixops/nixops-${version}/nixops-${version}.tar.bz2"; url = "https://nixos.org/releases/nixops/nixops-${version}/nixops-${version}.tar.bz2";

View file

@ -36,7 +36,6 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
homepage = "http://www.garloff.de/kurt/linux/ddrescue/"; homepage = "http://www.garloff.de/kurt/linux/ddrescue/";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
inherit version;
updateWalker = true; updateWalker = true;
}; };
} }

View file

@ -39,6 +39,5 @@ stdenv.mkDerivation rec {
platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
updateWalker = true; updateWalker = true;
inherit version;
}; };
} }

View file

@ -27,6 +27,5 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
license = licenses.bsd3; license = licenses.bsd3;
downloadPage = "https://sourceforge.net/projects/ipmiutil/files/ipmiutil/"; downloadPage = "https://sourceforge.net/projects/ipmiutil/files/ipmiutil/";
inherit version;
}; };
} }

View file

@ -29,6 +29,5 @@ stdenv.mkDerivation rec {
maintainers = [ lib.maintainers.raskin ]; maintainers = [ lib.maintainers.raskin ];
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
license = lib.licenses.ipl10; license = lib.licenses.ipl10;
inherit version;
}; };
} }

View file

@ -4,8 +4,6 @@
, IOKit, ApplicationServices }: , IOKit, ApplicationServices }:
let let
version = "7.2";
dbrev = "5171"; dbrev = "5171";
drivedbBranch = "RELEASE_7_2_DRIVEDB"; drivedbBranch = "RELEASE_7_2_DRIVEDB";
driverdb = fetchurl { driverdb = fetchurl {
@ -16,7 +14,7 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "smartmontools"; pname = "smartmontools";
inherit version; version = "7.2";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/smartmontools/${pname}-${version}.tar.gz"; url = "mirror://sourceforge/smartmontools/${pname}-${version}.tar.gz";

View file

@ -1,8 +1,6 @@
{ lib, stdenv, fetchurl }: { lib, stdenv, fetchurl }:
let let
version = "1.8.0";
# These settings are found in the Makefile, but there seems to be no # These settings are found in the Makefile, but there seems to be no
# way to select one ore the other setting other than editing the file # way to select one ore the other setting other than editing the file
# manually, so we have to duplicate the know how here. # manually, so we have to duplicate the know how here.
@ -23,9 +21,9 @@ let
'' else '' else
""; # use linux flags by default ""; # use linux flags by default
in in
stdenv.mkDerivation { stdenv.mkDerivation rec {
pname = "tree"; pname = "tree";
inherit version; version = "1.8.0";
src = fetchurl { src = fetchurl {
url = "http://mama.indstate.edu/users/ice/tree/src/tree-${version}.tgz"; url = "http://mama.indstate.edu/users/ice/tree/src/tree-${version}.tgz";

View file

@ -31,6 +31,5 @@ stdenv.mkDerivation rec {
''; '';
downloadPage = "https://github.com/Openwsman/wsmancli/releases"; downloadPage = "https://github.com/Openwsman/wsmancli/releases";
inherit (openwsman.meta) homepage license maintainers platforms; inherit (openwsman.meta) homepage license maintainers platforms;
inherit version;
}; };
} }

View file

@ -67,6 +67,5 @@ stdenv.mkDerivation rec {
homepage = "https://jwilk.net/software/pdf2djvu"; homepage = "https://jwilk.net/software/pdf2djvu";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ pSub ]; maintainers = with maintainers; [ pSub ];
inherit version;
}; };
} }

View file

@ -44,6 +44,5 @@ in stdenv.mkDerivation rec {
license = licenses.mit; license = licenses.mit;
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ peterhoeg ]; maintainers = with maintainers; [ peterhoeg ];
inherit version;
}; };
} }