mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
Merge master into haskell-updates
This commit is contained in:
commit
4528e233d6
@ -5088,6 +5088,13 @@
|
|||||||
fingerprint = "1412 816B A9FA F62F D051 1975 D3E1 B013 B463 1293";
|
fingerprint = "1412 816B A9FA F62F D051 1975 D3E1 B013 B463 1293";
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
ius = {
|
||||||
|
email = "j.de.gram@gmail.com";
|
||||||
|
name = "Joerie de Gram";
|
||||||
|
matrix = "@ius:nltrix.net";
|
||||||
|
github = "ius";
|
||||||
|
githubId = 529626;
|
||||||
|
};
|
||||||
ivan = {
|
ivan = {
|
||||||
email = "ivan@ludios.org";
|
email = "ivan@ludios.org";
|
||||||
github = "ivan";
|
github = "ivan";
|
||||||
|
@ -132,7 +132,12 @@ in {
|
|||||||
users.users = optionalAttrs (cfg.user == "collectd") {
|
users.users = optionalAttrs (cfg.user == "collectd") {
|
||||||
collectd = {
|
collectd = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
|
group = "collectd";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.groups = optionalAttrs (cfg.user == "collectd") {
|
||||||
|
collectd = {};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -47,19 +47,17 @@ let cfg = config.services.drbd; in
|
|||||||
options drbd usermode_helper=/run/current-system/sw/bin/drbdadm
|
options drbd usermode_helper=/run/current-system/sw/bin/drbdadm
|
||||||
'';
|
'';
|
||||||
|
|
||||||
environment.etc.drbd.conf =
|
environment.etc."drbd.conf" =
|
||||||
{ source = pkgs.writeText "drbd.conf" cfg.config; };
|
{ source = pkgs.writeText "drbd.conf" cfg.config; };
|
||||||
|
|
||||||
systemd.services.drbd = {
|
systemd.services.drbd = {
|
||||||
after = [ "systemd-udev.settle.service" "network.target" ];
|
after = [ "systemd-udev.settle.service" "network.target" ];
|
||||||
wants = [ "systemd-udev.settle.service" ];
|
wants = [ "systemd-udev.settle.service" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
script = ''
|
serviceConfig = {
|
||||||
${pkgs.drbd}/sbin/drbdadm up all
|
ExecStart = "${pkgs.drbd}/sbin/drbdadm up all";
|
||||||
'';
|
ExecStop = "${pkgs.drbd}/sbin/drbdadm down all";
|
||||||
serviceConfig.ExecStop = ''
|
};
|
||||||
${pkgs.drbd}/sbin/drbdadm down all
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -111,6 +111,7 @@ in
|
|||||||
dokuwiki = handleTest ./dokuwiki.nix {};
|
dokuwiki = handleTest ./dokuwiki.nix {};
|
||||||
domination = handleTest ./domination.nix {};
|
domination = handleTest ./domination.nix {};
|
||||||
dovecot = handleTest ./dovecot.nix {};
|
dovecot = handleTest ./dovecot.nix {};
|
||||||
|
drbd = handleTest ./drbd.nix {};
|
||||||
ec2-config = (handleTestOn ["x86_64-linux"] ./ec2.nix {}).boot-ec2-config or {};
|
ec2-config = (handleTestOn ["x86_64-linux"] ./ec2.nix {}).boot-ec2-config or {};
|
||||||
ec2-nixops = (handleTestOn ["x86_64-linux"] ./ec2.nix {}).boot-ec2-nixops or {};
|
ec2-nixops = (handleTestOn ["x86_64-linux"] ./ec2.nix {}).boot-ec2-nixops or {};
|
||||||
ecryptfs = handleTest ./ecryptfs.nix {};
|
ecryptfs = handleTest ./ecryptfs.nix {};
|
||||||
|
87
nixos/tests/drbd.nix
Normal file
87
nixos/tests/drbd.nix
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
import ./make-test-python.nix (
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
drbdPort = 7789;
|
||||||
|
|
||||||
|
drbdConfig =
|
||||||
|
{ nodes, ... }:
|
||||||
|
{
|
||||||
|
virtualisation.emptyDiskImages = [ 1 ];
|
||||||
|
networking.firewall.allowedTCPPorts = [ drbdPort ];
|
||||||
|
|
||||||
|
services.drbd = {
|
||||||
|
enable = true;
|
||||||
|
config = ''
|
||||||
|
global {
|
||||||
|
usage-count yes;
|
||||||
|
}
|
||||||
|
|
||||||
|
common {
|
||||||
|
net {
|
||||||
|
protocol C;
|
||||||
|
ping-int 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
resource r0 {
|
||||||
|
volume 0 {
|
||||||
|
device /dev/drbd0;
|
||||||
|
disk /dev/vdb;
|
||||||
|
meta-disk internal;
|
||||||
|
}
|
||||||
|
|
||||||
|
on drbd1 {
|
||||||
|
address ${nodes.drbd1.config.networking.primaryIPAddress}:${toString drbdPort};
|
||||||
|
}
|
||||||
|
|
||||||
|
on drbd2 {
|
||||||
|
address ${nodes.drbd2.config.networking.primaryIPAddress}:${toString drbdPort};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
name = "drbd";
|
||||||
|
meta = with pkgs.lib.maintainers; {
|
||||||
|
maintainers = [ ryantm astro ];
|
||||||
|
};
|
||||||
|
|
||||||
|
nodes.drbd1 = drbdConfig;
|
||||||
|
nodes.drbd2 = drbdConfig;
|
||||||
|
|
||||||
|
testScript = { nodes }: ''
|
||||||
|
drbd1.start()
|
||||||
|
drbd2.start()
|
||||||
|
|
||||||
|
drbd1.wait_for_unit("network.target")
|
||||||
|
drbd2.wait_for_unit("network.target")
|
||||||
|
|
||||||
|
drbd1.succeed(
|
||||||
|
"drbdadm create-md r0",
|
||||||
|
"drbdadm up r0",
|
||||||
|
"drbdadm primary r0 --force",
|
||||||
|
)
|
||||||
|
|
||||||
|
drbd2.succeed("drbdadm create-md r0", "drbdadm up r0")
|
||||||
|
|
||||||
|
drbd1.succeed(
|
||||||
|
"mkfs.ext4 /dev/drbd0",
|
||||||
|
"mkdir -p /mnt/drbd",
|
||||||
|
"mount /dev/drbd0 /mnt/drbd",
|
||||||
|
"touch /mnt/drbd/hello",
|
||||||
|
"umount /mnt/drbd",
|
||||||
|
"drbdadm secondary r0",
|
||||||
|
)
|
||||||
|
drbd1.sleep(1)
|
||||||
|
|
||||||
|
drbd2.succeed(
|
||||||
|
"drbdadm primary r0",
|
||||||
|
"mkdir -p /mnt/drbd",
|
||||||
|
"mount /dev/drbd0 /mnt/drbd",
|
||||||
|
"ls /mnt/drbd/hello",
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
)
|
@ -3,13 +3,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "viewnior";
|
pname = "viewnior";
|
||||||
version = "1.7";
|
version = "1.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hellosiyan";
|
owner = "hellosiyan";
|
||||||
repo = "Viewnior";
|
repo = "Viewnior";
|
||||||
rev = "${pname}-${version}";
|
rev = "${pname}-${version}";
|
||||||
sha256 = "0y4hk3vq8psba5k615w18qj0kbdfp5w0lm98nv5apy6hmcpwfyig";
|
sha256 = "sha256-LTahMmcAqgqviUxR624kTozJGTniAAGWKo1ZqXjoG5M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "hugo";
|
pname = "hugo";
|
||||||
version = "0.88.1";
|
version = "0.89.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gohugoio";
|
owner = "gohugoio";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-yuFFp/tgyziR4SXul2PlMhKmRl7C7OSrW8/kCCUpzI0=";
|
sha256 = "sha256-yXOe+SCMvr3xi0kd2AuWm1CzzBuODCED6p7kaWGXvpM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-VX+oIz5wAyEQ4nky3kXmJZbMF0MvfAKdEAMLnS0hXc8=";
|
vendorSha256 = "sha256-NqWi9n8H5IeMmkBwTX3HN1RLLtWA5sM1iy1L2BZCH7M=";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
@ -14,13 +14,13 @@ let
|
|||||||
]);
|
]);
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "wike";
|
pname = "wike";
|
||||||
version = "1.5.7";
|
version = "1.6.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hugolabe";
|
owner = "hugolabe";
|
||||||
repo = "Wike";
|
repo = "Wike";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-SB+ApuSovqQCaZYPhH+duf+c07JDSSCRz8hTVhEa4gY=";
|
sha256 = "sha256-23tmp0Cyr6O7Z2loLI0PHOxJGyE27RNmY7PoKBctt44=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -8,13 +8,13 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "arkade";
|
pname = "arkade";
|
||||||
version = "0.8.9";
|
version = "0.8.11";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "alexellis";
|
owner = "alexellis";
|
||||||
repo = "arkade";
|
repo = "arkade";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0jv6pip3ywx8bx7m25fby6kl5irnjxvlpss2wkm615gv9ari21aq";
|
sha256 = "0mdi5cjcs0qzj238lfjqbjgi131r2vxj810zx1gv1lc9y0aq0hkl";
|
||||||
};
|
};
|
||||||
|
|
||||||
CGO_ENABLED = 0;
|
CGO_ENABLED = 0;
|
||||||
@ -52,5 +52,13 @@ buildGoModule rec {
|
|||||||
description = "Open Source Kubernetes Marketplace";
|
description = "Open Source Kubernetes Marketplace";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ welteki ];
|
maintainers = with maintainers; [ welteki ];
|
||||||
|
platforms = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"x86_64-darwin"
|
||||||
|
"aarch64-linux"
|
||||||
|
"aarch64-darwin"
|
||||||
|
"armv7l-linux"
|
||||||
|
"armv6l-linux"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -15,16 +15,16 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "git-branchless";
|
pname = "git-branchless";
|
||||||
version = "0.3.7";
|
version = "0.3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "arxanas";
|
owner = "arxanas";
|
||||||
repo = "git-branchless";
|
repo = "git-branchless";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-knRRjTjnhpedcQTVpJnBsrnaeRbjZ2i3aABeE0LrQ+c=";
|
sha256 = "sha256-eDVC1tvAkCioV0Mi5f/Qkc0MMTNaoFXuvWXpllZ7PgE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-NyzsY5d4iC3zMSzmh9Qmd211oT6lmhUdvIfQdnzrtok=";
|
cargoSha256 = "sha256-wtG/WTmZ13jxIawI9j9QKQm7jPx5TUs7MjqX+lq/Vf0=";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
@ -42,6 +42,11 @@ rustPlatform.buildRustPackage rec {
|
|||||||
export PATH_TO_GIT=${git}/bin/git
|
export PATH_TO_GIT=${git}/bin/git
|
||||||
export GIT_EXEC_PATH=$(${git}/bin/git --exec-path)
|
export GIT_EXEC_PATH=$(${git}/bin/git --exec-path)
|
||||||
'';
|
'';
|
||||||
|
# FIXME: these tests deadlock when run in the Nix sandbox
|
||||||
|
checkFlags = [
|
||||||
|
"--skip=test_checkout_pty"
|
||||||
|
"--skip=test_next_ambiguous_interactive"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A suite of tools to help you visualize, navigate, manipulate, and repair your commit history";
|
description = "A suite of tools to help you visualize, navigate, manipulate, and repair your commit history";
|
||||||
|
@ -2,19 +2,19 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "cloud-hypervisor";
|
pname = "cloud-hypervisor";
|
||||||
version = "19.0";
|
version = "20.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cloud-hypervisor";
|
owner = "cloud-hypervisor";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0h3varacv9696mih8zrz3fp6xa8hxxvwzkrslhpf9ilcjs1bjihd";
|
sha256 = "1j2p2phv1fxsa2mdr66gyswqgij33m3sdaa460xrf98dm581bqw2";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ openssl ] ++ lib.optional stdenv.isAarch64 dtc;
|
buildInputs = [ openssl ] ++ lib.optional stdenv.isAarch64 dtc;
|
||||||
|
|
||||||
cargoSha256 = "015r9m9fr634ppn4qy0b8w1khjlxsv3wbpf3s7crmklzy57wakxl";
|
cargoSha256 = "12fmpq1y29mawa3xdwbwa3fw2hnhy5rqhlx54qp0s3x9g2jd7gsa";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/cloud-hypervisor/cloud-hypervisor";
|
homepage = "https://github.com/cloud-hypervisor/cloud-hypervisor";
|
||||||
|
@ -48,6 +48,12 @@ stdenv.mkDerivation rec {
|
|||||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config dbus-1 --cflags)"
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config dbus-1 --cflags)"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Parallel build fails due to missing dependencies between private libaries:
|
||||||
|
# ld: cannot find ../libAfterConf/libAfterConf.a: No such file or directory
|
||||||
|
# Let's disable parallel builds until it's fixed upstream:
|
||||||
|
# https://github.com/afterstep/afterstep/issues/8
|
||||||
|
enableParallelBuilding = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A NEXTStep-inspired window manager";
|
description = "A NEXTStep-inspired window manager";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -136,7 +136,7 @@ let self = stdenv.mkDerivation rec {
|
|||||||
PKG_CONFIG_UDEV_UDEVDIR = "${placeholder "out"}/lib/udev";
|
PKG_CONFIG_UDEV_UDEVDIR = "${placeholder "out"}/lib/udev";
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
libdir = "${self}/lib/mutter-8";
|
libdir = "${self}/lib/mutter-9";
|
||||||
|
|
||||||
tests = {
|
tests = {
|
||||||
libdirExists = runCommand "mutter-libdir-exists" {} ''
|
libdirExists = runCommand "mutter-libdir-exists" {} ''
|
||||||
|
File diff suppressed because one or more lines are too long
@ -30,7 +30,7 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pname = "gnome-flashback";
|
pname = "gnome-flashback";
|
||||||
version = "3.42.0";
|
version = "3.42.1";
|
||||||
|
|
||||||
# From data/sessions/Makefile.am
|
# From data/sessions/Makefile.am
|
||||||
requiredComponentsCommon = enableGnomePanel:
|
requiredComponentsCommon = enableGnomePanel:
|
||||||
@ -61,7 +61,7 @@ let
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
||||||
sha256 = "1CcdwHrHOyceS07cgfMfZPVzGqbUSOehXX2TOXbc3Us=";
|
sha256 = "sha256:0kl4m05whm03m2v0y3jd69lghkggn8s0hxdhvchcas7jmhh940n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
# make .desktop Execs absolute
|
# make .desktop Execs absolute
|
||||||
|
@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
|
|||||||
subdir = "6-2017q2";
|
subdir = "6-2017q2";
|
||||||
|
|
||||||
suffix = {
|
suffix = {
|
||||||
|
aarch64-darwin = "mac"; # use intel binaries via rosetta
|
||||||
x86_64-darwin = "mac";
|
x86_64-darwin = "mac";
|
||||||
x86_64-linux = "linux";
|
x86_64-linux = "linux";
|
||||||
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
@ -19,6 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${subdir}/gcc-arm-none-eabi-${release}-${suffix}.tar.bz2";
|
url = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${subdir}/gcc-arm-none-eabi-${release}-${suffix}.tar.bz2";
|
||||||
sha256 = {
|
sha256 = {
|
||||||
|
aarch64-darwin = "0019ylpq4inq7p5gydpmc9m8ni72fz2csrjlqmgx1698998q0c3x";
|
||||||
x86_64-darwin = "0019ylpq4inq7p5gydpmc9m8ni72fz2csrjlqmgx1698998q0c3x";
|
x86_64-darwin = "0019ylpq4inq7p5gydpmc9m8ni72fz2csrjlqmgx1698998q0c3x";
|
||||||
x86_64-linux = "1hvwi02mx34al525sngnl0cm7dkmzxfkb1brq9kvbv28wcplp3p6";
|
x86_64-linux = "1hvwi02mx34al525sngnl0cm7dkmzxfkb1brq9kvbv28wcplp3p6";
|
||||||
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
@ -48,6 +50,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "https://developer.arm.com/open-source/gnu-toolchain/gnu-rm";
|
homepage = "https://developer.arm.com/open-source/gnu-toolchain/gnu-rm";
|
||||||
license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
|
license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
|
||||||
maintainers = with maintainers; [ prusnak ];
|
maintainers = with maintainers; [ prusnak ];
|
||||||
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
|
|||||||
subdir = "7-2018q2";
|
subdir = "7-2018q2";
|
||||||
|
|
||||||
suffix = {
|
suffix = {
|
||||||
|
aarch64-darwin = "mac"; # use intel binaries via rosetta
|
||||||
x86_64-darwin = "mac";
|
x86_64-darwin = "mac";
|
||||||
x86_64-linux = "linux";
|
x86_64-linux = "linux";
|
||||||
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
@ -19,6 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${subdir}/gcc-arm-none-eabi-${release}-${suffix}.tar.bz2";
|
url = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${subdir}/gcc-arm-none-eabi-${release}-${suffix}.tar.bz2";
|
||||||
sha256 = {
|
sha256 = {
|
||||||
|
aarch64-darwin = "0nc7m0mpa39qyhfyydxkkyqm7spfc27xf6ygi2vd2aym4r9azi61";
|
||||||
x86_64-darwin = "0nc7m0mpa39qyhfyydxkkyqm7spfc27xf6ygi2vd2aym4r9azi61";
|
x86_64-darwin = "0nc7m0mpa39qyhfyydxkkyqm7spfc27xf6ygi2vd2aym4r9azi61";
|
||||||
x86_64-linux = "0sgysp3hfpgrkcbfiwkp0a7ymqs02khfbrjabm52b5z61sgi05xv";
|
x86_64-linux = "0sgysp3hfpgrkcbfiwkp0a7ymqs02khfbrjabm52b5z61sgi05xv";
|
||||||
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
@ -48,6 +50,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "https://developer.arm.com/open-source/gnu-toolchain/gnu-rm";
|
homepage = "https://developer.arm.com/open-source/gnu-toolchain/gnu-rm";
|
||||||
license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
|
license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
|
||||||
maintainers = with maintainers; [ prusnak ];
|
maintainers = with maintainers; [ prusnak ];
|
||||||
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
|
|||||||
subdir = "8-2019q3/RC1.1";
|
subdir = "8-2019q3/RC1.1";
|
||||||
|
|
||||||
suffix = {
|
suffix = {
|
||||||
|
aarch64-darwin = "mac"; # use intel binaries via rosetta
|
||||||
x86_64-darwin = "mac";
|
x86_64-darwin = "mac";
|
||||||
x86_64-linux = "linux";
|
x86_64-linux = "linux";
|
||||||
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
@ -19,6 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${subdir}/gcc-arm-none-eabi-${release}-${suffix}.tar.bz2";
|
url = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${subdir}/gcc-arm-none-eabi-${release}-${suffix}.tar.bz2";
|
||||||
sha256 = {
|
sha256 = {
|
||||||
|
aarch64-darwin = "fc235ce853bf3bceba46eff4b95764c5935ca07fc4998762ef5e5b7d05f37085";
|
||||||
x86_64-darwin = "fc235ce853bf3bceba46eff4b95764c5935ca07fc4998762ef5e5b7d05f37085";
|
x86_64-darwin = "fc235ce853bf3bceba46eff4b95764c5935ca07fc4998762ef5e5b7d05f37085";
|
||||||
x86_64-linux = "b50b02b0a16e5aad8620e9d7c31110ef285c1dde28980b1a9448b764d77d8f92";
|
x86_64-linux = "b50b02b0a16e5aad8620e9d7c31110ef285c1dde28980b1a9448b764d77d8f92";
|
||||||
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
@ -48,6 +50,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "https://developer.arm.com/open-source/gnu-toolchain/gnu-rm";
|
homepage = "https://developer.arm.com/open-source/gnu-toolchain/gnu-rm";
|
||||||
license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
|
license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
|
||||||
maintainers = with maintainers; [ prusnak ];
|
maintainers = with maintainers; [ prusnak ];
|
||||||
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -238,15 +238,15 @@ in {
|
|||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
pypy37 = callPackage ./pypy {
|
pypy38 = callPackage ./pypy {
|
||||||
self = pypy37;
|
self = pypy38;
|
||||||
sourceVersion = {
|
sourceVersion = {
|
||||||
major = "7";
|
major = "7";
|
||||||
minor = "3";
|
minor = "3";
|
||||||
patch = "5";
|
patch = "7";
|
||||||
};
|
};
|
||||||
sha256 = "sha256-2SD+QJqeytnQdKqFaMpfPtNYG+ZvZuXYmIt+xm5tmaI=";
|
sha256 = "sha256-Ia4zn09QFtbKcwAwXz47VUNzg1yzw5qQQf4w5oEcgMY=";
|
||||||
pythonVersion = "3.7";
|
pythonVersion = "3.8";
|
||||||
db = db.override { dbmSupport = !stdenv.isDarwin; };
|
db = db.override { dbmSupport = !stdenv.isDarwin; };
|
||||||
python = python27;
|
python = python27;
|
||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
|
@ -8,17 +8,17 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "wasmer";
|
pname = "wasmer";
|
||||||
version = "2.0.0";
|
version = "2.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wasmerio";
|
owner = "wasmerio";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "191f60db2y1f3xw1x81mw88vclf1c4kgvnfv74g5vb3vn7n57c5j";
|
sha256 = "sha256-8aNJDu3MuXWcPp/nW1ly9+82YSfiMWc75Q4nQD6eUaA=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "0hhwixqhrl79hpzmvq7ga3kp2cfrwr4i8364cwnr7195xwnfxb0k";
|
cargoSha256 = "sha256-l/Se0ijSX5zkAoedorsJvj5EhCuwgI4jE+S8lHZh6+4=";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config ];
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
# Can't use test-jit:
|
# Can't use test-jit:
|
||||||
# error: Package `wasmer-workspace v2.0.0 (/build/source)` does not have the feature `test-jit`
|
# error: Package `wasmer-workspace v2.1.0 (/build/source)` does not have the feature `test-jit`
|
||||||
checkFeatures = [ "test-cranelift" ];
|
checkFeatures = [ "test-cranelift" ];
|
||||||
|
|
||||||
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
||||||
|
@ -1,15 +1,19 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, capnproto, cmake }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, capnproto
|
||||||
|
, cmake }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "capnproto";
|
pname = "capnproto";
|
||||||
version = "0.9.0";
|
version = "0.9.1";
|
||||||
|
|
||||||
# release tarballs are missing some ekam rules
|
# release tarballs are missing some ekam rules
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "capnproto";
|
owner = "capnproto";
|
||||||
repo = "capnproto";
|
repo = "capnproto";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "038i40apywn8sg95kwld4mg9p9m08izcw5xj7mwkmshycmqw65na";
|
sha256 = "0cbiwkmd29abih8rjjm35dfkrkr8c6axbzq3fkryay6jyvpi42c5";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ]
|
nativeBuildInputs = [ cmake ]
|
||||||
|
@ -1,87 +0,0 @@
|
|||||||
{ stdenv
|
|
||||||
, lib
|
|
||||||
, fetchFromGitHub
|
|
||||||
, libyaml
|
|
||||||
, swig
|
|
||||||
, eigen
|
|
||||||
, pkg-config
|
|
||||||
, python2
|
|
||||||
, wafHook
|
|
||||||
, makeWrapper
|
|
||||||
, qt4
|
|
||||||
, pythonPackages ? null
|
|
||||||
, pythonSupport ? false
|
|
||||||
# Default to false since it breaks the build, see https://github.com/MTG/gaia/issues/11
|
|
||||||
, stlfacadeSupport ? false
|
|
||||||
, assertsSupport ? true
|
|
||||||
, cyclopsSupport ? true
|
|
||||||
}:
|
|
||||||
|
|
||||||
assert pythonSupport -> pythonPackages != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "gaia";
|
|
||||||
version = "2.4.6";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "MTG";
|
|
||||||
repo = "gaia";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "03vmdq7ca4f7zp2f4sxyqa8sdpdma3mn9fz4z7d93qryl0bhi7z3";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Fix installation error when waf tries to put files in /etc/
|
|
||||||
prePatch = "" + lib.optionalString cyclopsSupport ''
|
|
||||||
substituteInPlace src/wscript \
|
|
||||||
--replace "/etc/cyclops" "$out/etc/cyclops" \
|
|
||||||
--replace "/etc/init.d" "$out/etc/init.d"
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
pkg-config
|
|
||||||
python2 # For wafHook
|
|
||||||
swig
|
|
||||||
wafHook
|
|
||||||
]
|
|
||||||
# The gaiafusion binary inside $out/bin needs a shebangs patch, and
|
|
||||||
# wrapping with the appropriate $PYTHONPATH
|
|
||||||
++ lib.optionals (pythonSupport) [
|
|
||||||
pythonPackages.wrapPython
|
|
||||||
]
|
|
||||||
;
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
libyaml
|
|
||||||
eigen
|
|
||||||
qt4
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = []
|
|
||||||
++ lib.optionals (pythonSupport) [
|
|
||||||
# This is not exactly specified in upstream's README but it's needed by the
|
|
||||||
# resulting $out/bin/gaiafusion script
|
|
||||||
pythonPackages.pyyaml
|
|
||||||
]
|
|
||||||
;
|
|
||||||
|
|
||||||
wafConfigureFlags = []
|
|
||||||
++ lib.optionals (pythonSupport) [ "--with-python-bindings" ]
|
|
||||||
++ lib.optionals (stlfacadeSupport) [ "--with-stlfacade" ]
|
|
||||||
++ lib.optionals (assertsSupport) [ "--with-asserts" ]
|
|
||||||
++ lib.optionals (cyclopsSupport) [ "--with-cyclops" ]
|
|
||||||
;
|
|
||||||
|
|
||||||
postFixup = ""
|
|
||||||
+ lib.optionalString pythonSupport ''
|
|
||||||
wrapPythonPrograms
|
|
||||||
''
|
|
||||||
;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "https://github.com/MTG/gaia";
|
|
||||||
description = "General library to work with points in a semimetric space";
|
|
||||||
maintainers = with maintainers; [ doronbehar ];
|
|
||||||
platforms = platforms.x86; # upstream assume SSE2 / fails on ARM
|
|
||||||
license = licenses.agpl3;
|
|
||||||
};
|
|
||||||
}
|
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "args";
|
pname = "args";
|
||||||
version = "6.2.6";
|
version = "6.2.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Taywee";
|
owner = "Taywee";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-g5OXuZNi5bkWuSg7SNmhA6vyHUOFU8suYkH8nGx6tvg=";
|
sha256 = "sha256-I297qPXs8Fj7Ibq2PN6y/Eas3DiW5Ecvqot0ePwFNTI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "bitlist";
|
pname = "bitlist";
|
||||||
version = "0.6.0";
|
version = "0.6.1";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-LTrn+PCaqob0EGyyv1V1uCBeDQZvIYE1hNPqi4y/zfc=";
|
sha256 = "sha256-PL1ZT1LJCTtUILwenfA6Xk59/LjFISPaCw3IhXFe72o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "jupytext";
|
pname = "jupytext";
|
||||||
version = "1.13.2";
|
version = "1.13.3";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
|||||||
owner = "mwouts";
|
owner = "mwouts";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-S2SKAC2oT4VIVMMDbu/Puo87noAgnQs1hh88JphutA8=";
|
sha256 = "sha256-HzWAEy7z3qi+lSD3yVBGYclfvKTkG1fTsG29NlKPgQw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -52,7 +52,7 @@ buildPythonPackage rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
# https://github.com/mwouts/jupytext/pull/885
|
# https://github.com/mwouts/jupytext/pull/885
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "markdown-it-py[plugins]>=1.0.0b3,<2.0.0" "markdown-it-py[plugins]>=1.0"
|
--replace "markdown-it-py~=1.0" "markdown-it-py>=1.0.0,<3.0.0"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "meshtastic";
|
pname = "meshtastic";
|
||||||
version = "1.2.43";
|
version = "1.2.44";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-nGbULY/QJUv3sk8vYXvh/fhkab/vB3lGGhXRTjt8anI=";
|
sha256 = "f99e076dde0db86a5ba734b48257ffc7355a2b4729cea1ff5cd7638ca93dbd90";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
40
pkgs/development/python-modules/mouseinfo/default.nix
Normal file
40
pkgs/development/python-modules/mouseinfo/default.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pyperclip
|
||||||
|
, fetchFromGitHub
|
||||||
|
, xlib
|
||||||
|
, pillow
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "MouseInfo";
|
||||||
|
version = "0.1.3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "asweigart";
|
||||||
|
repo = "mouseinfo";
|
||||||
|
rev = "1876ad5cd311b4352d46bc64a12edfb4da49974e";
|
||||||
|
sha256 = "sha256-UTaHTJE0xFihN9r+DY/WhekZ7S/CXtMFbqAayzexRxk=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./fix-xlib-version.patch
|
||||||
|
./pillow-version.patch
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
# Mouseinfo requires a X server running to import succesfully
|
||||||
|
# pythonImportsCheck = [ "mouseinfo" ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pyperclip
|
||||||
|
xlib
|
||||||
|
pillow
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "An application to display XY position and RGB color information for the pixel currently under the mouse. Works on Python 2 and 3.";
|
||||||
|
homepage = "https://github.com/asweigart/mouseinfo";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
maintainers = with maintainers; [ lucasew ];
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index 37d5f77..894fe78 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -31,8 +31,7 @@ setup(
|
||||||
|
test_suite='tests',
|
||||||
|
# NOTE: Update the python_version info for Pillow as Pillow supports later versions of Python.
|
||||||
|
install_requires=['rubicon-objc;platform_system=="Darwin"',
|
||||||
|
- 'python3-Xlib;platform_system=="Linux" and python_version>="3.0"',
|
||||||
|
- 'Xlib;platform_system=="Linux" and python_version<"3.0"',
|
||||||
|
+ 'python-Xlib;platform_system=="Linux"',
|
||||||
|
'pyperclip',
|
||||||
|
'Pillow >= 6.2.1; python_version == "3.8"',
|
||||||
|
'Pillow >= 5.2.0; python_version == "3.7"',
|
@ -0,0 +1,20 @@
|
|||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index 894fe78..ac580a6 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -33,14 +33,7 @@ setup(
|
||||||
|
install_requires=['rubicon-objc;platform_system=="Darwin"',
|
||||||
|
'python-Xlib;platform_system=="Linux"',
|
||||||
|
'pyperclip',
|
||||||
|
- 'Pillow >= 6.2.1; python_version == "3.8"',
|
||||||
|
- 'Pillow >= 5.2.0; python_version == "3.7"',
|
||||||
|
- 'Pillow >= 4.0.0; python_version == "3.6"',
|
||||||
|
- 'Pillow >= 3.2.0; python_version == "3.5"',
|
||||||
|
- 'Pillow <= 5.4.1, >= 2.5.0; python_version == "3.4"',
|
||||||
|
- 'Pillow <= 4.3.0, >= 2.0.0; python_version == "3.3"',
|
||||||
|
- 'Pillow <= 3.4.2, >= 2.0.0; python_version == "3.2"',
|
||||||
|
- 'Pillow >= 2.0.0; python_version == "2.7"',
|
||||||
|
+ 'Pillow',
|
||||||
|
],
|
||||||
|
keywords='',
|
||||||
|
classifiers=[
|
@ -6,12 +6,12 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "phonenumbers";
|
pname = "phonenumbers";
|
||||||
version = "8.12.37";
|
version = "8.12.38";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-28VgmShEoFn1bHwMalh5BOZdlWdAu/t+OViZgLyQVbg=";
|
sha256 = "sha256-PNodHOqaaAG6v4JebA9ql3bqbYpouBslYXj45aqBM0Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
59
pkgs/development/python-modules/pyautogui/default.nix
Normal file
59
pkgs/development/python-modules/pyautogui/default.nix
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python3Packages
|
||||||
|
, pkgs
|
||||||
|
, fetchzip
|
||||||
|
, mouseinfo
|
||||||
|
, pygetwindow
|
||||||
|
, pymsgbox
|
||||||
|
, pyperclip
|
||||||
|
, pyrect
|
||||||
|
, pyscreeze
|
||||||
|
, pytweening
|
||||||
|
, tkinter
|
||||||
|
, xlib
|
||||||
|
, xvfb-run
|
||||||
|
, scrot
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pyautogui";
|
||||||
|
version = "0.9.53";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "asweigart";
|
||||||
|
repo = "pyautogui";
|
||||||
|
rev = "5e4acb870f2e7ce0ea1927cc5188bc2f5ab7bbbc";
|
||||||
|
sha256 = "sha256-R9tcTqxUaqw63FLOGFRaO/Oz6kD7V6MPHdQ8A29NdXw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [ xvfb-run scrot ];
|
||||||
|
checkPhase = ''
|
||||||
|
xvfb-run python -c 'import pyautogui'
|
||||||
|
# The tests depend on some specific things that xvfb cant provide, like keyboard and mouse
|
||||||
|
# xvfb-run python -m unittest tests.test_pyautogui
|
||||||
|
'';
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# https://github.com/asweigart/pyautogui/issues/598
|
||||||
|
./fix-locateOnWindow-and-xlib.patch
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
mouseinfo
|
||||||
|
pygetwindow
|
||||||
|
pymsgbox
|
||||||
|
xlib
|
||||||
|
tkinter
|
||||||
|
pyperclip
|
||||||
|
pyscreeze
|
||||||
|
pytweening
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "PyAutoGUI lets Python control the mouse and keyboard, and other GUI automation tasks.";
|
||||||
|
homepage = "https://github.com/asweigart/pyautogui";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ lucasew ];
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
diff --git a/pyautogui/__init__.py b/pyautogui/__init__.py
|
||||||
|
index ec7d097..443b146 100644
|
||||||
|
--- a/pyautogui/__init__.py
|
||||||
|
+++ b/pyautogui/__init__.py
|
||||||
|
@@ -216,9 +216,9 @@ try:
|
||||||
|
|
||||||
|
@raisePyAutoGUIImageNotFoundException
|
||||||
|
def locateOnWindow(*args, **kwargs):
|
||||||
|
- return pyscreeze.locateOnWindow(*args, **kwargs)
|
||||||
|
+ return pyscreeze.locateOnScreen(*args, **kwargs)
|
||||||
|
|
||||||
|
- locateOnWindow.__doc__ = pyscreeze.locateOnWindow.__doc__
|
||||||
|
+ locateOnWindow.__doc__ = pyscreeze.locateOnScreen.__doc__
|
||||||
|
|
||||||
|
|
||||||
|
except ImportError:
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index 196394d..6d90a88 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -29,8 +29,7 @@ setup(
|
||||||
|
test_suite='tests',
|
||||||
|
install_requires=['pyobjc-core;platform_system=="Darwin"',
|
||||||
|
'pyobjc;platform_system=="Darwin"',
|
||||||
|
- 'python3-Xlib;platform_system=="Linux" and python_version>="3.0"',
|
||||||
|
- 'python-xlib;platform_system=="Linux" and python_version<"3.0"',
|
||||||
|
+ 'python-xlib;platform_system=="Linux"',
|
||||||
|
'pymsgbox',
|
||||||
|
'PyTweening>=1.0.1',
|
||||||
|
'pyscreeze>=0.1.21',
|
@ -10,14 +10,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pycapnp";
|
pname = "pycapnp";
|
||||||
version = "1.0.0";
|
version = "1.1.0";
|
||||||
disabled = isPyPy || isPy27;
|
disabled = isPyPy || isPy27;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "capnproto";
|
owner = "capnproto";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1n6dq2fbagi3wvrpkyb7wx4y15nkm2grln4y75hrqgmnli8ggi9v";
|
sha256 = "1xi6df93ggkpmwckwbi356v7m32zv5qry8s45hvsps66dz438kmi";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ capnproto cython pkgconfig ];
|
buildInputs = [ capnproto cython pkgconfig ];
|
||||||
|
29
pkgs/development/python-modules/pygetwindow/default.nix
Normal file
29
pkgs/development/python-modules/pygetwindow/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pyrect
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "PyGetWindow";
|
||||||
|
version = "0.0.9";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256-F4lDVefSswXNgy1xdwg4QBfBaYqQziT29/vwJC3Qpog=";
|
||||||
|
};
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
# This lib officially only works completely on Windows and partially on MacOS but pyautogui requires it
|
||||||
|
# pythonImportsCheck = [ "pygetwindow" ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pyrect
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A simple, cross-platform module for obtaining GUI information on applications' windows.";
|
||||||
|
homepage = "https://github.com/asweigart/PyGetWindow";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ lucasew ];
|
||||||
|
};
|
||||||
|
}
|
@ -2,18 +2,18 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "PyMsgBox";
|
pname = "PyMsgBox";
|
||||||
version = "1.0.6";
|
version = "1.0.9";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0kmd00w7p6maiyqpqqb2j8m6v2gh9c0h5i198pa02bc1c1m1321q";
|
sha256 = "sha256-IZQifei/96PW2lQYSHBaFV3LsqBu4SDZ8oCh1/USY/8=";
|
||||||
extension = "zip";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ tkinter ];
|
propagatedBuildInputs = [ tkinter ];
|
||||||
|
|
||||||
# Finding tests fails
|
# Finding tests fails
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "pymsgbox" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A simple, cross-platform, pure Python module for JavaScript-like message boxes";
|
description = "A simple, cross-platform, pure Python module for JavaScript-like message boxes";
|
||||||
|
@ -13,7 +13,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/asweigart/pyperclip";
|
homepage = "https://github.com/asweigart/pyperclip";
|
||||||
license = licenses.bsdOriginal;
|
license = licenses.bsd3;
|
||||||
description = "Cross-platform clipboard module";
|
description = "Cross-platform clipboard module";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
29
pkgs/development/python-modules/pyrect/default.nix
Normal file
29
pkgs/development/python-modules/pyrect/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, tox
|
||||||
|
, pytestCheckHook
|
||||||
|
, pygame
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "PyRect";
|
||||||
|
version = "0.1.4";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256-Oy+nNTzjKhGqawoVSVlo0qdjQjyJR64ki5LAN9704gI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [ tox pytestCheckHook pygame ];
|
||||||
|
pythonImportsCheck = [ "pyrect" ];
|
||||||
|
preCheck = ''
|
||||||
|
export LC_ALL="en_US.UTF-8"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Simple module with a Rect class for Pygame-like rectangular areas";
|
||||||
|
homepage = "https://github.com/asweigart/pyrect";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ lucasew ];
|
||||||
|
};
|
||||||
|
}
|
37
pkgs/development/python-modules/pyscreeze/default.nix
Normal file
37
pkgs/development/python-modules/pyscreeze/default.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pillow
|
||||||
|
, xlib
|
||||||
|
, xvfb-run
|
||||||
|
, scrot
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "PyScreeze";
|
||||||
|
version = "0.1.26";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "asweigart";
|
||||||
|
repo = "pyscreeze";
|
||||||
|
rev = "28ab707dceecbdd135a9491c3f8effd3a69680af";
|
||||||
|
sha256 = "sha256-gn3ydjf/msdhIhngGlhK+jhEyFy0qGeDr58E7kM2YZs=";
|
||||||
|
};
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pyscreeze" ];
|
||||||
|
checkInputs = [ scrot xlib xvfb-run ];
|
||||||
|
checkPhase = ''
|
||||||
|
python -m unittest tests.test_pillow_unavailable
|
||||||
|
xvfb-run python -m unittest tests.test_pyscreeze
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pillow
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "PyScreeze is a simple, cross-platform screenshot module for Python 2 and 3.";
|
||||||
|
homepage = "https://github.com/asweigart/pyscreeze";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ lucasew ];
|
||||||
|
};
|
||||||
|
}
|
25
pkgs/development/python-modules/pytweening/default.nix
Normal file
25
pkgs/development/python-modules/pytweening/default.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pytweening";
|
||||||
|
version = "1.0.4";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256-hTMoLPcLMd6KBJnhz0IJMLABPHhxGIcrLsiZOCeS4uY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pytweening" ];
|
||||||
|
checkPhase = ''
|
||||||
|
python -m unittest tests.basicTests
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Set of tweening / easing functions implemented in Python";
|
||||||
|
homepage = "https://github.com/asweigart/pytweening";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ lucasew ];
|
||||||
|
};
|
||||||
|
}
|
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "air";
|
pname = "air";
|
||||||
version = "1.27.3";
|
version = "1.27.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cosmtrek";
|
owner = "cosmtrek";
|
||||||
repo = "air";
|
repo = "air";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-QO3cPyr2FqCdoiax/V0fe7kRwT61T3efnfO8uWp8rRM=";
|
sha256 = "sha256-CVx4TDDAVIrJ3lnD2AIuxhmTV+/sIA0viX20zFkznNc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-B7AgUFjiW3P1dU88u3kswbCQJ7Qq7rgPlX+b+3Pq1L4=";
|
vendorSha256 = "sha256-dloXz1hiKAQUmSQv1rLbE5vYrZpKAcwakC71AFXWZqM=";
|
||||||
|
|
||||||
subPackages = [ "." ];
|
subPackages = [ "." ];
|
||||||
|
|
||||||
|
@ -46,13 +46,13 @@ with py.pkgs;
|
|||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "checkov";
|
pname = "checkov";
|
||||||
version = "2.0.626";
|
version = "2.0.628";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bridgecrewio";
|
owner = "bridgecrewio";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-fPx1TvPx16ciaDR0gYQknLCQVRfwFNo0T/P5gY419VY=";
|
sha256 = "sha256-/plAzSkvcQ1pEd62/ZyFMew1c81FTIyCTynxVAPjqAE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with py.pkgs; [
|
nativeBuildInputs = with py.pkgs; [
|
||||||
|
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "act";
|
pname = "act";
|
||||||
version = "0.2.24";
|
version = "0.2.25";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nektos";
|
owner = "nektos";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-BWSw1yELxLDMUg2LxXuy+N0IRxLQYtVdzny1FGYVXEY=";
|
sha256 = "sha256-Eo5uWBLriYa7tLpPMa34+l6BYQe9useL1tN9gqUSt0k=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-dLIsVWN/PjcH0CUYRmn4YaF8Pczf/gaWhD3lulqGiuA=";
|
vendorSha256 = "sha256-1v87WcQoVyTyCStiMAoThidIMRqJwdsYNF987kQp5YM=";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
@ -27,11 +27,11 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "kibana-${optionalString (!enableUnfree) "oss-"}${version}";
|
pname = "kibana${optionalString (!enableUnfree) "-oss"}";
|
||||||
version = elk6Version;
|
version = elk6Version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://artifacts.elastic.co/downloads/kibana/${name}-${plat}-${arch}.tar.gz";
|
url = "https://artifacts.elastic.co/downloads/kibana/${pname}-${version}-${plat}-${arch}.tar.gz";
|
||||||
sha256 = shas.${stdenv.hostPlatform.system} or (throw "Unknown architecture");
|
sha256 = shas.${stdenv.hostPlatform.system} or (throw "Unknown architecture");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, CoreServices
|
, CoreServices
|
||||||
, cmake
|
, cmake
|
||||||
@ -12,14 +11,14 @@
|
|||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "rust-analyzer-unwrapped";
|
pname = "rust-analyzer-unwrapped";
|
||||||
version = "2021-10-25";
|
version = "2021-11-29";
|
||||||
cargoSha256 = "sha256-PCQxXNpv4krdLBhyINoZT5QxV2hCqXpp1mqs0dUu4Ag=";
|
cargoSha256 = "sha256-UgYR0e3Pt3lcbkSDnizlwtwjnqTaqGlXRgR724U4rSU=";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rust-analyzer";
|
owner = "rust-analyzer";
|
||||||
repo = "rust-analyzer";
|
repo = "rust-analyzer";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-3AMRwtEmITIvUdR/NINQTPatkjhmS1dQsbbsefIDYAE=";
|
sha256 = "sha256-vh7z8jupVxXPOko3sWUsOB7eji/7lKfwJ/CE3iw97Sw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -28,32 +27,6 @@ rustPlatform.buildRustPackage rec {
|
|||||||
./ignore-git-and-rustfmt-tests.patch
|
./ignore-git-and-rustfmt-tests.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
# Revert edition 2021 related code since we have rust 1.55.0 in nixpkgs currently.
|
|
||||||
# Remove them when we have rust >= 1.56.0
|
|
||||||
# They change Cargo.toml so go `cargoPatches`.
|
|
||||||
cargoPatches = [
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/rust-analyzer/rust-analyzer/commit/f0ad6fa68bf98d317518bb75da01b7bb7abe98d3.patch";
|
|
||||||
revert = true;
|
|
||||||
sha256 = "sha256-ksX2j1Pgtd+M+FmXTEljm1nUxJwcY8GDQ9784Lb1uM4=";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/rust-analyzer/rust-analyzer/commit/8457ae34bdbca117b2ef73787b214161440e21f9.patch";
|
|
||||||
revert = true;
|
|
||||||
sha256 = "sha256-w1Py1bvZ2/tDQDZVMNmPRo6i6uA4H3YYZY4rXlo0iqg=";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/rust-analyzer/rust-analyzer/commit/ca44b6892e3e66765355d4e645f74df3d184c03b.patch";
|
|
||||||
revert = true;
|
|
||||||
sha256 = "sha256-N1TWlLxEg6oxFkns1ieVVvLAkrHq2WOr1tbkNvZvDFg=";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/rust-analyzer/rust-analyzer/commit/1294bfce865c556184c9327af4a8953ca940aec8.patch";
|
|
||||||
revert = true;
|
|
||||||
sha256 = "sha256-65eZxAjsuUln6lzSihIP26x15PELLDL4yk9wiVzJ0hE=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
buildAndTestSubdir = "crates/rust-analyzer";
|
buildAndTestSubdir = "crates/rust-analyzer";
|
||||||
|
|
||||||
nativeBuildInputs = lib.optional useMimalloc cmake;
|
nativeBuildInputs = lib.optional useMimalloc cmake;
|
||||||
@ -84,8 +57,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
passthru.updateScript = ./update.sh;
|
passthru.updateScript = ./update.sh;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An experimental modular compiler frontend for the Rust language";
|
description = "A modular compiler frontend for the Rust language";
|
||||||
homepage = "https://github.com/rust-analyzer/rust-analyzer";
|
homepage = "https://rust-analyzer.github.io";
|
||||||
license = with licenses; [ mit asl20 ];
|
license = with licenses; [ mit asl20 ];
|
||||||
maintainers = with maintainers; [ oxalica ];
|
maintainers = with maintainers; [ oxalica ];
|
||||||
};
|
};
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
buildGraalvmNativeImage rec {
|
buildGraalvmNativeImage rec {
|
||||||
pname = "zprint";
|
pname = "zprint";
|
||||||
version = "1.1.2";
|
version = "1.2.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/kkinnear/${pname}/releases/download/${version}/${pname}-filter-${version}";
|
url = "https://github.com/kkinnear/${pname}/releases/download/${version}/${pname}-filter-${version}";
|
||||||
sha256 = "1wh8jyj7alfa6h0cycfwffki83wqb5d5x0p7kvgdkhl7jx7isrwj";
|
sha256 = "sha256-av1DsTijNzLdnBjTF2fEFqEM/X2VUVFvNuC09ikeDGM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraNativeImageBuildArgs = [
|
extraNativeImageBuildArgs = [
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, SDL2, SDL2_image, SDL2_mixer, SDL2_net, SDL2_ttf
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, SDL2, SDL2_image, SDL2_mixer, SDL2_net, SDL2_ttf
|
||||||
, pango, gettext, boost, libvorbis, fribidi, dbus, libpng, pcre, openssl, icu
|
, pango, gettext, boost, libvorbis, fribidi, dbus, libpng, pcre, openssl, icu
|
||||||
, Cocoa, Foundation
|
, Cocoa, Foundation
|
||||||
, enableTools ? false
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -21,8 +20,6 @@ stdenv.mkDerivation rec {
|
|||||||
libvorbis fribidi dbus libpng pcre openssl icu ]
|
libvorbis fribidi dbus libpng pcre openssl icu ]
|
||||||
++ lib.optionals stdenv.isDarwin [ Cocoa Foundation];
|
++ lib.optionals stdenv.isDarwin [ Cocoa Foundation];
|
||||||
|
|
||||||
cmakeFlags = [ "-DENABLE_TOOLS=${if enableTools then "ON" else "OFF"}" ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The Battle for Wesnoth, a free, turn-based strategy game with a fantasy theme";
|
description = "The Battle for Wesnoth, a free, turn-based strategy game with a fantasy theme";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "xsnow";
|
pname = "xsnow";
|
||||||
version = "3.3.1";
|
version = "3.3.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://ratrabbit.nl/downloads/xsnow/xsnow-${version}.tar.gz";
|
url = "https://ratrabbit.nl/downloads/xsnow/xsnow-${version}.tar.gz";
|
||||||
sha256 = "sha256-3piLgcZXQicHisAqr5XxbFqAMHyK7HzU5Re0mvfOBhE=";
|
sha256 = "sha256-S9pyoDehOUr6Q/PjqH3/tkiyYpn6kHkYnuOQ3FhL44I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "autotiling";
|
pname = "autotiling";
|
||||||
version = "1.5";
|
version = "1.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nwg-piotr";
|
owner = "nwg-piotr";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0ih8yd1gankjxn88gd88vxs6f1cniyi04z25jz4nsgqi9snz65v4";
|
sha256 = "1hjlvg7095s322gb43r9g7mqlsy3pj13l827jpnbn5x0918rq9rr";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ i3ipc importlib-metadata ];
|
propagatedBuildInputs = [ i3ipc importlib-metadata ];
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rust-analyzer",
|
"name": "rust-analyzer",
|
||||||
"version": "0.2.792",
|
"version": "0.2.834",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"https-proxy-agent": "^5.0.0",
|
"https-proxy-agent": "^5.0.0",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
@ -20,7 +20,7 @@
|
|||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
"typescript": "^4.3.5",
|
"typescript": "^4.3.5",
|
||||||
"typescript-formatter": "^7.2.2",
|
"typescript-formatter": "^7.2.2",
|
||||||
"vsce": "=1.95.1",
|
"vsce": "^1.95.1",
|
||||||
"vscode-test": "^1.5.1"
|
"vscode-test": "^1.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,24 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge, xxd }:
|
{ lib, stdenv, fetchFromGitHub, darwin, xxd }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "yabai";
|
pname = "yabai";
|
||||||
version = "3.3.4";
|
version = "3.3.10";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "koekeishiya";
|
owner = "koekeishiya";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1pvyjdxgy7yxxz4x87f8an0dlxvxbnmv5kya8hkzw2na453ihvab";
|
sha256 = "sha256-8O6//T894C32Pba3F2Z84Z6VWeCXlwml3xsXoIZGqL0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ Carbon Cocoa ScriptingBridge xxd ];
|
nativeBuildInputs = [ xxd ];
|
||||||
|
|
||||||
|
buildInputs = with darwin.apple_sdk.frameworks; [
|
||||||
|
Carbon
|
||||||
|
Cocoa
|
||||||
|
ScriptingBridge
|
||||||
|
SkyLight
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{ lib, stdenv, fetchurl, flex, bison, linuxHeaders, libtirpc, mount, umount, nfs-utils, e2fsprogs
|
{ lib, stdenv, fetchurl, flex, bison, linuxHeaders, libtirpc, mount, umount, nfs-utils, e2fsprogs
|
||||||
, libxml2, libkrb5, kmod, openldap, sssd, cyrus_sasl, openssl, rpcsvc-proto }:
|
, libxml2, libkrb5, kmod, openldap, sssd, cyrus_sasl, openssl, rpcsvc-proto }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
version = "5.1.6";
|
version = "5.1.6";
|
||||||
name = "autofs-${version}";
|
pname = "autofs";
|
||||||
in stdenv.mkDerivation {
|
|
||||||
inherit name;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://kernel/linux/daemons/autofs/v5/${name}.tar.xz";
|
url = "mirror://kernel/linux/daemons/autofs/v5/autofs-${version}.tar.xz";
|
||||||
sha256 = "1vya21mb4izj3khcr3flibv7xc15vvx2v0rjfk5yd31qnzcy7pnx";
|
sha256 = "1vya21mb4izj3khcr3flibv7xc15vvx2v0rjfk5yd31qnzcy7pnx";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,49 +1,128 @@
|
|||||||
{ lib, stdenv, fetchurl, flex, systemd, perl }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, docbook_xml_dtd_44
|
||||||
|
, docbook_xml_dtd_45
|
||||||
|
, docbook_xsl
|
||||||
|
, asciidoctor
|
||||||
|
, fetchurl
|
||||||
|
, flex
|
||||||
|
, kmod
|
||||||
|
, libxslt
|
||||||
|
, nixosTests
|
||||||
|
, perl
|
||||||
|
, systemd
|
||||||
|
|
||||||
|
# drbd-utils are compiled twice, once with forOCF = true to extract
|
||||||
|
# its OCF definitions for use in the ocf-resource-agents derivation,
|
||||||
|
# then again with forOCF = false, where the ocf-resource-agents is
|
||||||
|
# provided as the OCF_ROOT.
|
||||||
|
, forOCF ? false
|
||||||
|
, ocf-resource-agents
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "drbd";
|
pname = "drbd";
|
||||||
version = "8.4.4";
|
version = "9.19.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://oss.linbit.com/drbd/8.4/drbd-${version}.tar.gz";
|
url = "https://pkg.linbit.com/downloads/drbd/utils/${pname}-utils-${version}.tar.gz";
|
||||||
sha256 = "1w4889h1ak7gy9w33kd4fgjlfpgmp6hzfya16p1pkc13bjf22mm0";
|
sha256 = "1l99kcrb0j85wxxmrdihpx9bk1a4sdi7wlp5m1x5l24k8ck1m5cf";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./pass-force.patch ./fix-glibc-compilation.patch ];
|
nativeBuildInputs = [
|
||||||
|
flex
|
||||||
|
libxslt
|
||||||
|
docbook_xsl
|
||||||
|
asciidoctor
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ flex ];
|
buildInputs = [
|
||||||
buildInputs = [ perl ];
|
perl
|
||||||
|
# perlPackages.Po4a used by ja documentation
|
||||||
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--without-distro"
|
"--libdir=${placeholder "out"}/lib"
|
||||||
"--without-pacemaker"
|
"--sbindir=${placeholder "out"}/bin"
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
|
"--without-distro"
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure =
|
makeFlags = [
|
||||||
''
|
"SOURCE_DATE_EPOCH=1"
|
||||||
export PATH=${systemd}/sbin:$PATH
|
"WANT_DRBD_REPRODUCIBLE_BUILD=1"
|
||||||
substituteInPlace user/Makefile.in \
|
] ++ lib.optional (!forOCF) "OCF_ROOT=${ocf-resource-agents}/usr/lib/ocf}";
|
||||||
--replace /sbin '$(sbindir)'
|
|
||||||
substituteInPlace user/legacy/Makefile.in \
|
|
||||||
--replace '$(DESTDIR)/lib/drbd' '$(DESTDIR)$(LIBDIR)'
|
|
||||||
substituteInPlace user/drbdadm_usage_cnt.c --replace /lib/drbd $out/lib/drbd
|
|
||||||
substituteInPlace scripts/drbd.rules --replace /usr/sbin/drbdadm $out/sbin/drbdadm
|
|
||||||
'';
|
|
||||||
|
|
||||||
makeFlags = [ "SHELL=${stdenv.shell}" ];
|
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [
|
||||||
"localstatedir=$(TMPDIR)/var"
|
"prefix="
|
||||||
"sysconfdir=$(out)/etc"
|
"DESTDIR=${placeholder "out"}"
|
||||||
"INITDIR=$(out)/etc/init.d"
|
"localstatedir=/var"
|
||||||
|
"DRBD_LIB_DIR=/var/lib"
|
||||||
|
"INITDIR=/etc/init.d"
|
||||||
|
"udevrulesdir=/etc/udev/rules.d"
|
||||||
|
"sysconfdir=/etc"
|
||||||
|
"sbindir=/bin"
|
||||||
|
"datadir="
|
||||||
|
"LIBDIR=/lib/drbd"
|
||||||
|
"mandir=/share/man"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs .
|
||||||
|
substituteInPlace user/v84/drbdadm_usage_cnt.c \
|
||||||
|
--replace '"/lib/drbd");' \
|
||||||
|
'"${placeholder "out"}/lib/drbd");'
|
||||||
|
substituteInPlace user/v9/drbdsetup_linux.c \
|
||||||
|
--replace 'ret = system("/sbin/modprobe drbd");' \
|
||||||
|
'ret = system("${kmod}/bin/modprobe drbd");'
|
||||||
|
substituteInPlace user/v84/drbdsetup.c \
|
||||||
|
--replace 'system("/sbin/modprobe drbd")' \
|
||||||
|
'system("${kmod}/bin/modprobe drbd")'
|
||||||
|
substituteInPlace documentation/ra2refentry.xsl \
|
||||||
|
--replace "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
|
||||||
|
"${docbook_xml_dtd_44}/xml/dtd/docbook/docbookx.dtd"
|
||||||
|
function patch_docbook45() {
|
||||||
|
substituteInPlace $1 \
|
||||||
|
--replace "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
|
||||||
|
"${docbook_xml_dtd_45}/xml/dtd/docbook/docbookx.dtd"
|
||||||
|
}
|
||||||
|
patch_docbook45 documentation/v9/drbd.conf.xml.in
|
||||||
|
patch_docbook45 documentation/v9/drbdsetup.xml.in
|
||||||
|
patch_docbook45 documentation/v84/drbdsetup.xml
|
||||||
|
patch_docbook45 documentation/v84/drbd.conf.xml
|
||||||
|
# The ja documentation is disabled because:
|
||||||
|
# make[1]: Entering directory '/build/drbd-utils-9.16.0/documentation/ja/v84'
|
||||||
|
# /nix/store/wyx2nn2pjcn50lc95c6qgsgm606rn0x2-perl5.32.1-po4a-0.62/bin/po4a-translate -f docbook -M utf-8 -L utf-8 -keep 0 -m ../../v84/drbdsetup.xml -p drbdsetup.xml.po -l drbdsetup.xml
|
||||||
|
# Use of uninitialized value $args[1] in sprintf at /nix/store/wyx2nn2pjcn50lc95c6qgsgm606rn0x2-perl5.32.1-po4a-0.62/lib/perl5/site_perl/Locale/Po4a/Common.pm line 134.
|
||||||
|
# Invalid po file drbdsetup.xml.po:
|
||||||
|
substituteInPlace Makefile.in \
|
||||||
|
--replace 'DOC_DIRS := documentation/v9 documentation/ja/v9' \
|
||||||
|
'DOC_DIRS := documentation/v9' \
|
||||||
|
--replace 'DOC_DIRS += documentation/v84 documentation/ja/v84' \
|
||||||
|
'DOC_DIRS += documentation/v84' \
|
||||||
|
--replace '$(MAKE) -C documentation/ja/v9 doc' \
|
||||||
|
"" \
|
||||||
|
--replace '$(MAKE) -C documentation/ja/v84 doc' \
|
||||||
|
""
|
||||||
|
substituteInPlace user/v9/drbdtool_common.c \
|
||||||
|
--replace 'add_component_to_path("/lib/drbd");' \
|
||||||
|
'add_component_to_path("${placeholder "out"}/lib/drbd");'
|
||||||
|
'';
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
export PATH=${systemd}/sbin:$PATH
|
||||||
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
passthru.tests.drbd = nixosTests.drbd;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://www.drbd.org/";
|
homepage = "https://linbit.com/drbd/";
|
||||||
description = "Distributed Replicated Block Device, a distributed storage system for Linux";
|
description = "Distributed Replicated Block Device, a distributed storage system for Linux (userspace utilities)";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ ryantm astro ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
diff --git a/user/drbdadm_adjust.c b/user/drbdadm_adjust.c
|
|
||||||
index cb23270..3a751ca 100644
|
|
||||||
--- a/user/drbdadm_adjust.c
|
|
||||||
+++ b/user/drbdadm_adjust.c
|
|
||||||
@@ -29,6 +29,7 @@
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/wait.h>
|
|
||||||
+#include <sys/sysmacros.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
|
|
||||||
diff --git a/user/legacy/drbdadm_adjust.c b/user/legacy/drbdadm_adjust.c
|
|
||||||
index c79163c..6990ffb 100644
|
|
||||||
--- a/user/legacy/drbdadm_adjust.c
|
|
||||||
+++ b/user/legacy/drbdadm_adjust.c
|
|
||||||
@@ -27,6 +27,7 @@
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/wait.h>
|
|
||||||
+#include <sys/sysmacros.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
|||||||
Propagate the --force flag in the legacy drbdadm to drbdsetup.
|
|
||||||
Otherwise "drbdadm primary --force" won't work as expected (the kernel
|
|
||||||
will say "State change failed: Need access to UpToDate data").
|
|
||||||
|
|
||||||
diff -ru -x '*~' drbd-8.4.0-orig/user/legacy/drbdadm_main.c drbd-8.4.0/user/legacy/drbdadm_main.c
|
|
||||||
--- drbd-8.4.0-orig/user/legacy/drbdadm_main.c 2011-07-07 06:55:39.000000000 -0400
|
|
||||||
+++ drbd-8.4.0/user/legacy/drbdadm_main.c 2011-11-02 14:51:04.000000000 -0400
|
|
||||||
@@ -1547,6 +1547,7 @@
|
|
||||||
for (i = 0; i < soi; i++) {
|
|
||||||
argv[NA(argc)] = setup_opts[i];
|
|
||||||
}
|
|
||||||
+ if (force) argv[NA(argc)] = "--force";
|
|
||||||
argv[NA(argc)] = 0;
|
|
||||||
|
|
||||||
setenv("DRBD_RESOURCE", res->name, 1);
|
|
@ -1,11 +1,8 @@
|
|||||||
{lib, stdenv, fetchurl, openssl, nettools, iproute2, sysctl}:
|
{lib, stdenv, fetchurl, openssl, nettools, iproute2, sysctl}:
|
||||||
|
|
||||||
let baseName = "gogoclient";
|
|
||||||
version = "1.2";
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${baseName}-${version}";
|
pname = "gogoclient";
|
||||||
|
version = "1.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
#url = "http://gogo6.com/downloads/gogoc-1_2-RELEASE.tar.gz";
|
#url = "http://gogo6.com/downloads/gogoc-1_2-RELEASE.tar.gz";
|
||||||
@ -21,9 +18,9 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [openssl];
|
buildInputs = [openssl];
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
mkdir -p $out/share/${name}
|
mkdir -p $out/share/gogoclient-${version}
|
||||||
chmod 444 $out/bin/gogoc.conf
|
chmod 444 $out/bin/gogoc.conf
|
||||||
mv $out/bin/gogoc.conf $out/share/${name}/gogoc.conf.sample
|
mv $out/bin/gogoc.conf $out/share/gogoclient-${version}/gogoc.conf.sample
|
||||||
rm $out/bin/gogoc.conf.sample
|
rm $out/bin/gogoc.conf.sample
|
||||||
|
|
||||||
substituteInPlace "$out/template/linux.sh" \
|
substituteInPlace "$out/template/linux.sh" \
|
||||||
|
56
pkgs/os-specific/linux/ocf-resource-agents/default.nix
Normal file
56
pkgs/os-specific/linux/ocf-resource-agents/default.nix
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, runCommand
|
||||||
|
, lndir
|
||||||
|
, fetchFromGitHub
|
||||||
|
, autoreconfHook
|
||||||
|
, pkg-config
|
||||||
|
, python3
|
||||||
|
, glib
|
||||||
|
, drbd
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
drbdForOCF = drbd.override {
|
||||||
|
forOCF = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
resource-agentsForOCF = stdenv.mkDerivation rec {
|
||||||
|
pname = "resource-agents";
|
||||||
|
version = "4.10.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ClusterLabs";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0haryi3yrszdfpqnkfnppxj1yiy6ipah6m80snvayc7v0ss0wnir";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
autoreconfHook
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
python3
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/ClusterLabs/resource-agents";
|
||||||
|
description = "Combined repository of OCF agents from the RHCS and Linux-HA projects";
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ ryantm astro ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
# This combines together OCF definitions from other derivations.
|
||||||
|
# https://github.com/ClusterLabs/resource-agents/blob/master/doc/dev-guides/ra-dev-guide.asc
|
||||||
|
runCommand "ocf-resource-agents" {} ''
|
||||||
|
mkdir -p $out/usr/lib/ocf
|
||||||
|
${lndir}/bin/lndir -silent "${resource-agentsForOCF}/lib/ocf/" $out/usr/lib/ocf
|
||||||
|
${lndir}/bin/lndir -silent "${drbdForOCF}/usr/lib/ocf/" $out/usr/lib/ocf
|
||||||
|
''
|
@ -1,15 +1,14 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub }:
|
{ lib, stdenv, fetchFromGitHub }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
baseName = "pps-tools";
|
pname = "pps-tools";
|
||||||
version = "1.0.2";
|
version = "1.0.3";
|
||||||
name = "${baseName}-${version}";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "redlab-i";
|
owner = "redlab-i";
|
||||||
repo = baseName;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1yh9g0l59dkq4ci0wbb03qin3c3cizfngmn9jy1vwm5zm6axlxhf";
|
sha256 = "sha256-eLLFHrCgOQzOtVxlAsZ5X91KK+vZiKMGL7zbQFiIZtI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
@ -24,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
rm -rf $out/usr/
|
rm -rf $out/usr/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib;{
|
meta = with lib; {
|
||||||
description = "User-space tools for LinuxPPS";
|
description = "User-space tools for LinuxPPS";
|
||||||
homepage = "http://linuxpps.org/";
|
homepage = "http://linuxpps.org/";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
{ lib, mkDerivation, fetchpatch, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
|
{ lib, mkDerivation, fetchpatch, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
|
||||||
|
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
name = "wpa_gui-${wpa_supplicant.version}";
|
pname = "wpa_gui";
|
||||||
|
version = wpa_supplicant.version;
|
||||||
|
|
||||||
inherit (wpa_supplicant) src;
|
inherit (wpa_supplicant) src;
|
||||||
|
|
||||||
|
@ -293,10 +293,10 @@ in
|
|||||||
pam = {
|
pam = {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
name = "pam";
|
name = "pam";
|
||||||
owner = "stogh";
|
owner = "sto";
|
||||||
repo = "ngx_http_auth_pam_module";
|
repo = "ngx_http_auth_pam_module";
|
||||||
rev = "v1.5.2";
|
rev = "v1.5.3";
|
||||||
sha256 = "06nydxk82rc9yrw4408nakb197flxh4z1yv935crg65fn9706rl7";
|
sha256 = "sha256:09lnljdhjg65643bc4535z378lsn4llbq67zcxlln0pizk9y921a";
|
||||||
};
|
};
|
||||||
inputs = [ pkgs.pam ];
|
inputs = [ pkgs.pam ];
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, jre, git, gradle_6, perl, makeWrapper }:
|
{ lib, stdenv, fetchFromGitHub, jre, git, gradle_6, perl, makeWrapper }:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "ma1sd-${version}";
|
pname = "ma1sd";
|
||||||
version = "2.4.0";
|
version = "2.4.0";
|
||||||
rev = version;
|
rev = version;
|
||||||
|
|
||||||
@ -14,8 +14,8 @@ let
|
|||||||
|
|
||||||
|
|
||||||
deps = stdenv.mkDerivation {
|
deps = stdenv.mkDerivation {
|
||||||
name = "${name}-deps";
|
pname = "${pname}-deps";
|
||||||
inherit src;
|
inherit src version;
|
||||||
nativeBuildInputs = [ gradle_6 perl git ];
|
nativeBuildInputs = [ gradle_6 perl git ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
@ -40,7 +40,7 @@ let
|
|||||||
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit name src version;
|
inherit pname src version;
|
||||||
nativeBuildInputs = [ gradle_6 perl makeWrapper ];
|
nativeBuildInputs = [ gradle_6 perl makeWrapper ];
|
||||||
buildInputs = [ jre ];
|
buildInputs = [ jre ];
|
||||||
|
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "wsdd";
|
pname = "wsdd";
|
||||||
version = "0.6.4";
|
version = "0.7.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "christgau";
|
owner = "christgau";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0lfvpbk1lkri597ac4gz5x4csfyik8axz4b41i03xsqv9bci2vh6";
|
sha256 = "sha256-9cwzkF2mg6yOIsurLMXTLoEIOsKbPIWMicpWBQ0XVhE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
{ lib, stdenv, fetchurl, libX11 }:
|
{ lib, stdenv, fetchurl, libX11 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${baseName}-${version}";
|
pname = "xgeometry-select";
|
||||||
baseName = "xgeometry-select";
|
|
||||||
version = "0.1";
|
version = "0.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -15,12 +14,12 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ libX11 ];
|
buildInputs = [ libX11 ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
gcc -Wall -lX11 ${src} -o ${baseName}
|
gcc -Wall -lX11 ${src} -o xgeometry-select
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
mv -v ${baseName} $out/bin
|
mv -v xgeometry-select $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
42
pkgs/tools/admin/colmena/default.nix
Normal file
42
pkgs/tools/admin/colmena/default.nix
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{ stdenv, lib, rustPlatform, fetchFromGitHub, installShellFiles, colmena, testVersion }:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "colmena";
|
||||||
|
version = "0.2.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "zhaofengli";
|
||||||
|
repo = "colmena";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-WY8SYapnDcfaoLr1iFgwc9/E7xSfOFN2AvMDpk74AI8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "sha256-ZNSg3hXWKHNQ9yHJS1qW3tFYwzU4ZDa1N0yvoGLmWns=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||||
|
installShellCompletion --cmd colmena \
|
||||||
|
--bash <($out/bin/colmena gen-completions bash) \
|
||||||
|
--zsh <($out/bin/colmena gen-completions zsh) \
|
||||||
|
--fish <($out/bin/colmena gen-completions fish)
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Recursive Nix is not stable yet
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
# We guarantee CLI and Nix API stability for the same minor version
|
||||||
|
apiVersion = builtins.concatStringsSep "." (lib.take 2 (lib.splitString "." version));
|
||||||
|
|
||||||
|
tests.version = testVersion { package = colmena; };
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A simple, stateless NixOS deployment tool";
|
||||||
|
homepage = "https://zhaofengli.github.io/colmena/${passthru.apiVersion}";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ zhaofengli ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -3,7 +3,7 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "alsaequal";
|
pname = "alsaequal";
|
||||||
version = "0.6";
|
version = "0.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, go-md2man }:
|
{ lib, stdenv, fetchFromGitHub, go-md2man }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.1.0";
|
version = "1.3.0";
|
||||||
pname = "zfs-prune-snapshots";
|
pname = "zfs-prune-snapshots";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bahamas10";
|
owner = "bahamas10";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "09dz9v6m47dxfvfncz0k926dqfhagm87kd33dcw66cbw15ac3spx";
|
sha256 = "sha256-udzC4AUXk7h7HpRcz0V+kPECzATAYZtX8z2fvKPCZ/c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ go-md2man ];
|
nativeBuildInputs = [ go-md2man ];
|
||||||
|
@ -2,14 +2,13 @@
|
|||||||
, fetchFromGitHub, glib, pkg-config }:
|
, fetchFromGitHub, glib, pkg-config }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
date = "2016-12-12";
|
version = "unstable-2016-12-12";
|
||||||
name = "bluez-tools-${date}";
|
pname = "bluez-tools";
|
||||||
rev = "97efd29";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
inherit rev;
|
|
||||||
owner = "khvzak";
|
owner = "khvzak";
|
||||||
repo = "bluez-tools";
|
repo = "bluez-tools";
|
||||||
|
rev = "97efd293491ad7ec96a655665339908f2478b3d1";
|
||||||
sha256 = "08xp77sf5wnq5086halmyk3vla4bfls06q1zrqdcq36hw6d409i6";
|
sha256 = "08xp77sf5wnq5086halmyk3vla4bfls06q1zrqdcq36hw6d409i6";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{ fetchurl, lib, stdenv, libcdio, zlib, bzip2, readline, acl, attr, libiconv }:
|
{ fetchurl, lib, stdenv, libcdio, zlib, bzip2, readline, acl, attr, libiconv }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "xorriso-${version}";
|
pname = "xorriso";
|
||||||
version = "1.5.4.pl02";
|
version = "1.5.4.pl02";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/xorriso/${name}.tar.gz";
|
url = "mirror://gnu/xorriso/xorriso-${version}.tar.gz";
|
||||||
sha256 = "sha256-Psc5PUqdy/X3QwnCikFfVSJ+xidwuVrpk6yNejsVKXI=";
|
sha256 = "sha256-Psc5PUqdy/X3QwnCikFfVSJ+xidwuVrpk6yNejsVKXI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
{ lib, stdenv, fetchurl, openssl, libbsd }:
|
{ lib, stdenv, fetchurl, openssl, libbsd }:
|
||||||
|
|
||||||
let version = "332.25";
|
stdenv.mkDerivation rec {
|
||||||
package_name = "hfsprogs"; in
|
version = "332.25";
|
||||||
stdenv.mkDerivation {
|
pname = "hfsprogs";
|
||||||
name = "${package_name}-${version}";
|
|
||||||
srcs = [
|
srcs = [
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "http://ftp.de.debian.org/debian/pool/main/h/hfsprogs/${package_name}_${version}-11.debian.tar.gz";
|
url = "http://ftp.de.debian.org/debian/pool/main/h/hfsprogs/hfsprogs_${version}-11.debian.tar.gz";
|
||||||
sha256 = "62d9b8599c66ebffbc57ce5d776e20b41341130d9b27341d63bda08460ebde7c";
|
sha256 = "62d9b8599c66ebffbc57ce5d776e20b41341130d9b27341d63bda08460ebde7c";
|
||||||
})
|
})
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
@ -29,13 +28,13 @@ stdenv.mkDerivation {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
# Create required package directories
|
# Create required package directories
|
||||||
install -m 755 -d "$out/bin"
|
install -m 755 -d "$out/bin"
|
||||||
install -m 755 -d "$out/share/${package_name}"
|
install -m 755 -d "$out/share/hfsprogs"
|
||||||
install -m 755 -d "$out/share/man/man8/"
|
install -m 755 -d "$out/share/man/man8/"
|
||||||
# Copy executables
|
# Copy executables
|
||||||
install -m 755 "newfs_hfs.tproj/newfs_hfs" "$out/bin/mkfs.hfsplus"
|
install -m 755 "newfs_hfs.tproj/newfs_hfs" "$out/bin/mkfs.hfsplus"
|
||||||
install -m 755 "fsck_hfs.tproj/fsck_hfs" "$out/bin/fsck.hfsplus"
|
install -m 755 "fsck_hfs.tproj/fsck_hfs" "$out/bin/fsck.hfsplus"
|
||||||
# Copy shared data
|
# Copy shared data
|
||||||
install -m 644 "newfs_hfs.tproj/hfsbootdata.img" "$out/share/${package_name}/hfsbootdata"
|
install -m 644 "newfs_hfs.tproj/hfsbootdata.img" "$out/share/hfsprogs/hfsbootdata"
|
||||||
# Copy man pages
|
# Copy man pages
|
||||||
install -m 644 "newfs_hfs.tproj/newfs_hfs.8" "$out/share/man/man8/mkfs.hfsplus.8"
|
install -m 644 "newfs_hfs.tproj/newfs_hfs.8" "$out/share/man/man8/mkfs.hfsplus.8"
|
||||||
install -m 644 "fsck_hfs.tproj/fsck_hfs.8" "$out/share/man/man8/fsck.hfsplus.8"
|
install -m 644 "fsck_hfs.tproj/fsck_hfs.8" "$out/share/man/man8/fsck.hfsplus.8"
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, systemd, util-linux, coreutils }:
|
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, systemd, util-linux, coreutils }:
|
||||||
|
|
||||||
let
|
|
||||||
v = "2.02.106";
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "lvm2-${v}";
|
pname = "lvm2";
|
||||||
|
version = "2.02.106";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "ftp://sources.redhat.com/pub/lvm2/releases/LVM2.${v}.tgz";
|
url = "ftp://sources.redhat.com/pub/lvm2/releases/LVM2.${version}.tgz";
|
||||||
sha256 = "0nr833bl0q4zq52drjxmmpf7bs6kqxwa5kahwwxm9411khkxz0vc";
|
sha256 = "0nr833bl0q4zq52drjxmmpf7bs6kqxwa5kahwwxm9411khkxz0vc";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{lib, stdenv, fetchurl, fetchpatch, zlib, ncurses, fuse}:
|
{lib, stdenv, fetchurl, fetchpatch, zlib, ncurses, fuse}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "wiimms-iso-tools";
|
pname = "wiimms-iso-tools";
|
||||||
version = "3.02a";
|
version = "3.02a";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, python2Packages }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, python3Packages }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "facedetect";
|
pname = "facedetect";
|
||||||
@ -11,14 +11,22 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0mddh71cjbsngpvjli406ndi2x613y39ydgb8bi4z1jp063865sd";
|
sha256 = "0mddh71cjbsngpvjli406ndi2x613y39ydgb8bi4z1jp063865sd";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ python2Packages.python python2Packages.wrapPython ];
|
patches = [
|
||||||
pythonPath = [ python2Packages.numpy python2Packages.opencv4 ];
|
(fetchpatch {
|
||||||
|
name = "python3-support.patch";
|
||||||
|
url = "https://gitlab.com/wavexx/facedetect/-/commit/8037d4406eb76dd5c106819f72c3562f8b255b5b.patch";
|
||||||
|
sha256 = "1752k37pbkigiwglx99ba9360ahzzrrb65a8d77k3xs4c3bcmk2p";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [ python3Packages.python python3Packages.wrapPython ];
|
||||||
|
pythonPath = [ python3Packages.numpy python3Packages.opencv4 ];
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
substituteInPlace facedetect \
|
substituteInPlace facedetect \
|
||||||
--replace /usr/share/opencv "${python2Packages.opencv4}/share/opencv4"
|
--replace /usr/share/opencv "${python3Packages.opencv4}/share/opencv4"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -13,7 +13,7 @@ let
|
|||||||
sha256 = "10bdjn481jsh32vll7r756l392anz44h6207vjqwby3rplk31np1";
|
sha256 = "10bdjn481jsh32vll7r756l392anz44h6207vjqwby3rplk31np1";
|
||||||
};
|
};
|
||||||
in clangStdenv.mkDerivation rec {
|
in clangStdenv.mkDerivation rec {
|
||||||
name = "fcitx-mozc-${version}";
|
pname = "fcitx-mozc";
|
||||||
version = "2.23.2815.102";
|
version = "2.23.2815.102";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
}:
|
}:
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "barman";
|
pname = "barman";
|
||||||
version = "2.15";
|
version = "2.17";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "EnterpriseDB";
|
owner = "EnterpriseDB";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "release/${version}";
|
rev = "release/${version}";
|
||||||
sha256 = "127cqndg0405rad9jzba1mfhpqmyfa3kx16w345kd4n822w17ak9";
|
sha256 = "0c4gcs4kglbb2qma4nlvw0ycj1wnsg934p9vs50dvqi9099hxkmb";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = with python3Packages; [
|
checkInputs = with python3Packages; [
|
||||||
|
@ -10,15 +10,15 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "cht.sh";
|
pname = "cht.sh";
|
||||||
version = "unstable-2021-11-13";
|
version = "unstable-2021-11-17";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "chubin";
|
owner = "chubin";
|
||||||
repo = "cheat.sh";
|
repo = "cheat.sh";
|
||||||
rev = "4bb7b14843c302695b7d47d4d814f38998da1a68";
|
rev = "e0010117ca3eeb22e79346cb37f3897b7404ed12";
|
||||||
sha256 = "NbB+UGydk0zSkqTPYw5KOHR0mv1UHH2pXLYdMRdG8UE=";
|
sha256 = "GJSJyIQ+8kz/+8/3lgPVr+V6zoo7iW739Z2frLpMTJI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fix ".cht.sh-wrapped" in the help message
|
# Fix ".cht.sh-wrapped" in the help message
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "amass";
|
pname = "amass";
|
||||||
version = "3.15.1";
|
version = "3.15.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "OWASP";
|
owner = "OWASP";
|
||||||
repo = "Amass";
|
repo = "Amass";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-ANp65yOQQSJMPXO+CJzSPTUBO65hu9UJ81h9AKr4/iQ=";
|
sha256 = "sha256-0zTnknpjTvUEai06JsRfQASclxpvaJnEfYK7biZeqU0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-Lh/VN+IBXpT8e7ok5Qjfk5tgXEUVwKMHYcp9WrChN3A=";
|
vendorSha256 = "sha256-Lh/VN+IBXpT8e7ok5Qjfk5tgXEUVwKMHYcp9WrChN3A=";
|
||||||
|
@ -5,23 +5,23 @@
|
|||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
qemuName = "qemu-2.10.0";
|
|
||||||
cpuTarget = if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64-linux-user"
|
cpuTarget = if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64-linux-user"
|
||||||
else if stdenv.hostPlatform.system == "i686-linux" then "i386-linux-user"
|
else if stdenv.hostPlatform.system == "i686-linux" then "i386-linux-user"
|
||||||
else throw "afl: no support for ${stdenv.hostPlatform.system}!";
|
else throw "afl: no support for ${stdenv.hostPlatform.system}!";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "afl-${qemuName}";
|
pname = "afl-qemu";
|
||||||
|
version = "2.10.0";
|
||||||
|
|
||||||
srcs = [
|
srcs = [
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "http://wiki.qemu.org/download/${qemuName}.tar.bz2";
|
url = "http://wiki.qemu.org/download/qemu-${version}.tar.bz2";
|
||||||
sha256 = "0j3dfxzrzdp1w21k21fjvmakzc6lcha1rsclaicwqvbf63hkk7vy";
|
sha256 = "0j3dfxzrzdp1w21k21fjvmakzc6lcha1rsclaicwqvbf63hkk7vy";
|
||||||
})
|
})
|
||||||
afl.src
|
afl.src
|
||||||
];
|
];
|
||||||
|
|
||||||
sourceRoot = qemuName;
|
sourceRoot = "qemu-${version}";
|
||||||
|
|
||||||
postUnpack = ''
|
postUnpack = ''
|
||||||
cp ${afl.src.name}/types.h $sourceRoot/afl-types.h
|
cp ${afl.src.name}/types.h $sourceRoot/afl-types.h
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "nmap${optionalString graphicalSupport "-graphical"}-${version}";
|
pname = "nmap${optionalString graphicalSupport "-graphical"}";
|
||||||
version = "7.92";
|
version = "7.92";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
version = "1.2.4";
|
version = "1.2.4";
|
||||||
|
|
||||||
srcs = {
|
srcs = {
|
||||||
richclient = fetchurl {
|
richclient = fetchurl {
|
||||||
url = "https://jnlp.openecard.org/richclient-${version}-20171212-0958.jar";
|
url = "https://jnlp.openecard.org/richclient-${version}-20171212-0958.jar";
|
||||||
@ -18,8 +17,8 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
appName = "open-ecard";
|
pname = "open-ecard";
|
||||||
name = "${appName}-${version}";
|
inherit version;
|
||||||
|
|
||||||
src = srcs.richclient;
|
src = srcs.richclient;
|
||||||
|
|
||||||
@ -28,12 +27,12 @@ in stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
name = appName;
|
name = pname;
|
||||||
desktopName = "Open eCard App";
|
desktopName = "Open eCard App";
|
||||||
genericName = "eCard App";
|
genericName = "eCard App";
|
||||||
comment = "Client side implementation of the eCard-API-Framework";
|
comment = "Client side implementation of the eCard-API-Framework";
|
||||||
icon = "oec_logo_bg-transparent.svg";
|
icon = "oec_logo_bg-transparent.svg";
|
||||||
exec = appName;
|
exec = pname;
|
||||||
categories = "Utility;Security;";
|
categories = "Utility;Security;";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -47,7 +46,7 @@ in stdenv.mkDerivation rec {
|
|||||||
cp ${srcs.logo} $out/share/pixmaps/oec_logo_bg-transparent.svg
|
cp ${srcs.logo} $out/share/pixmaps/oec_logo_bg-transparent.svg
|
||||||
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
makeWrapper ${jre}/bin/java $out/bin/${appName} \
|
makeWrapper ${jre}/bin/java $out/bin/${pname} \
|
||||||
--add-flags "-cp $out/share/java/cifs-${version}.jar" \
|
--add-flags "-cp $out/share/java/cifs-${version}.jar" \
|
||||||
--add-flags "-jar $out/share/java/richclient-${version}.jar" \
|
--add-flags "-jar $out/share/java/richclient-${version}.jar" \
|
||||||
--suffix LD_LIBRARY_PATH ':' ${lib.getLib pcsclite}/lib
|
--suffix LD_LIBRARY_PATH ':' ${lib.getLib pcsclite}/lib
|
||||||
|
@ -2,14 +2,12 @@
|
|||||||
, withGUI ? false, gtk2, pkg-config, sqlite # compile GUI
|
, withGUI ? false, gtk2, pkg-config, sqlite # compile GUI
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let numVersion = "02.18"; # :(
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "lshw-${numVersion}b";
|
pname = "lshw";
|
||||||
version = numVersion;
|
version = "B.02.18";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://ezix.org/software/files/lshw-B.${version}.tar.gz";
|
url = "https://ezix.org/software/files/lshw-${version}.tar.gz";
|
||||||
sha256 = "0brwra4jld0d53d7jsgca415ljglmmx1l2iazpj4ndilr48yy8mf";
|
sha256 = "0brwra4jld0d53d7jsgca415ljglmmx1l2iazpj4ndilr48yy8mf";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -280,6 +280,7 @@ mapAliases ({
|
|||||||
fuseki = apache-jena-fuseki; # added 2018-04-25
|
fuseki = apache-jena-fuseki; # added 2018-04-25
|
||||||
fwupdate = throw "fwupdate was merged into fwupd"; # added 2020-05-19
|
fwupdate = throw "fwupdate was merged into fwupd"; # added 2020-05-19
|
||||||
g4py = python3Packages.geant4; # added 2020-06-06
|
g4py = python3Packages.geant4; # added 2020-06-06
|
||||||
|
gaia = throw "gaia has been removed because it seems abandoned upstream and uses no longer supported dependencies"; # added 2020-06-06
|
||||||
gdal_1_11 = throw "gdal_1_11 was removed. Use gdal instead."; # added 2021-04-03
|
gdal_1_11 = throw "gdal_1_11 was removed. Use gdal instead."; # added 2021-04-03
|
||||||
gdb-multitarget = gdb; # added 2017-11-13
|
gdb-multitarget = gdb; # added 2017-11-13
|
||||||
gdk_pixbuf = gdk-pixbuf; # added 2019-05-22
|
gdk_pixbuf = gdk-pixbuf; # added 2019-05-22
|
||||||
|
@ -277,6 +277,8 @@ with pkgs;
|
|||||||
|
|
||||||
corgi = callPackage ../development/tools/corgi { };
|
corgi = callPackage ../development/tools/corgi { };
|
||||||
|
|
||||||
|
colmena = callPackage ../tools/admin/colmena { };
|
||||||
|
|
||||||
colobot = callPackage ../games/colobot {};
|
colobot = callPackage ../games/colobot {};
|
||||||
|
|
||||||
colorz = callPackage ../tools/misc/colorz { };
|
colorz = callPackage ../tools/misc/colorz { };
|
||||||
@ -1717,8 +1719,6 @@ with pkgs;
|
|||||||
|
|
||||||
genymotion = callPackage ../development/mobile/genymotion { };
|
genymotion = callPackage ../development/mobile/genymotion { };
|
||||||
|
|
||||||
gaia = callPackage ../development/libraries/gaia { };
|
|
||||||
|
|
||||||
galene = callPackage ../servers/web-apps/galene {
|
galene = callPackage ../servers/web-apps/galene {
|
||||||
buildGoModule = buildGo115Module;
|
buildGoModule = buildGo115Module;
|
||||||
};
|
};
|
||||||
@ -13501,7 +13501,7 @@ with pkgs;
|
|||||||
python3 = python39;
|
python3 = python39;
|
||||||
pypy = pypy2;
|
pypy = pypy2;
|
||||||
pypy2 = pypy27;
|
pypy2 = pypy27;
|
||||||
pypy3 = pypy37;
|
pypy3 = pypy38;
|
||||||
|
|
||||||
# Python interpreter that is build with all modules, including tkinter.
|
# Python interpreter that is build with all modules, including tkinter.
|
||||||
# These are for compatibility and should not be used inside Nixpkgs.
|
# These are for compatibility and should not be used inside Nixpkgs.
|
||||||
@ -13551,7 +13551,7 @@ with pkgs;
|
|||||||
python3Packages = python3.pkgs;
|
python3Packages = python3.pkgs;
|
||||||
|
|
||||||
pythonInterpreters = callPackage ./../development/interpreters/python { };
|
pythonInterpreters = callPackage ./../development/interpreters/python { };
|
||||||
inherit (pythonInterpreters) python27 python37 python38 python39 python310 python3Minimal pypy27 pypy37;
|
inherit (pythonInterpreters) python27 python37 python38 python39 python310 python3Minimal pypy27 pypy38;
|
||||||
|
|
||||||
# Python package sets.
|
# Python package sets.
|
||||||
python27Packages = python27.pkgs;
|
python27Packages = python27.pkgs;
|
||||||
@ -22387,6 +22387,8 @@ with pkgs;
|
|||||||
|
|
||||||
system76-firmware = callPackage ../os-specific/linux/firmware/system76-firmware { };
|
system76-firmware = callPackage ../os-specific/linux/firmware/system76-firmware { };
|
||||||
|
|
||||||
|
ocf-resource-agents = callPackage ../os-specific/linux/ocf-resource-agents { };
|
||||||
|
|
||||||
open-vm-tools = callPackage ../applications/virtualization/open-vm-tools { };
|
open-vm-tools = callPackage ../applications/virtualization/open-vm-tools { };
|
||||||
open-vm-tools-headless = open-vm-tools.override { withX = false; };
|
open-vm-tools-headless = open-vm-tools.override { withX = false; };
|
||||||
|
|
||||||
@ -33413,9 +33415,7 @@ with pkgs;
|
|||||||
|
|
||||||
xzoom = callPackage ../tools/X11/xzoom {};
|
xzoom = callPackage ../tools/X11/xzoom {};
|
||||||
|
|
||||||
yabai = callPackage ../os-specific/darwin/yabai {
|
yabai = callPackage ../os-specific/darwin/yabai { };
|
||||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa ScriptingBridge;
|
|
||||||
};
|
|
||||||
|
|
||||||
yabause = libsForQt5.callPackage ../misc/emulators/yabause {
|
yabause = libsForQt5.callPackage ../misc/emulators/yabause {
|
||||||
freeglut = null;
|
freeglut = null;
|
||||||
|
@ -4946,6 +4946,8 @@ in {
|
|||||||
|
|
||||||
motor = callPackage ../development/python-modules/motor { };
|
motor = callPackage ../development/python-modules/motor { };
|
||||||
|
|
||||||
|
mouseinfo = callPackage ../development/python-modules/mouseinfo { };
|
||||||
|
|
||||||
moviepy = callPackage ../development/python-modules/moviepy { };
|
moviepy = callPackage ../development/python-modules/moviepy { };
|
||||||
|
|
||||||
mox3 = callPackage ../development/python-modules/mox3 { };
|
mox3 = callPackage ../development/python-modules/mox3 { };
|
||||||
@ -6261,6 +6263,8 @@ in {
|
|||||||
|
|
||||||
pyaudio = callPackage ../development/python-modules/pyaudio { };
|
pyaudio = callPackage ../development/python-modules/pyaudio { };
|
||||||
|
|
||||||
|
pyautogui = callPackage ../development/python-modules/pyautogui { };
|
||||||
|
|
||||||
pyavm = callPackage ../development/python-modules/pyavm { };
|
pyavm = callPackage ../development/python-modules/pyavm { };
|
||||||
|
|
||||||
pyaxmlparser = callPackage ../development/python-modules/pyaxmlparser { };
|
pyaxmlparser = callPackage ../development/python-modules/pyaxmlparser { };
|
||||||
@ -6568,6 +6572,8 @@ in {
|
|||||||
|
|
||||||
pygeoip = callPackage ../development/python-modules/pygeoip { };
|
pygeoip = callPackage ../development/python-modules/pygeoip { };
|
||||||
|
|
||||||
|
pygetwindow = callPackage ../development/python-modules/pygetwindow { };
|
||||||
|
|
||||||
pygit2 = callPackage ../development/python-modules/pygit2 { };
|
pygit2 = callPackage ../development/python-modules/pygit2 { };
|
||||||
|
|
||||||
PyGithub = callPackage ../development/python-modules/pyGithub { };
|
PyGithub = callPackage ../development/python-modules/pyGithub { };
|
||||||
@ -7077,6 +7083,8 @@ in {
|
|||||||
pythonPackages = self;
|
pythonPackages = self;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
pyrect = callPackage ../development/python-modules/pyrect { };
|
||||||
|
|
||||||
pyregion = callPackage ../development/python-modules/pyregion { };
|
pyregion = callPackage ../development/python-modules/pyregion { };
|
||||||
|
|
||||||
pyres = callPackage ../development/python-modules/pyres { };
|
pyres = callPackage ../development/python-modules/pyres { };
|
||||||
@ -7147,6 +7155,8 @@ in {
|
|||||||
|
|
||||||
pyscreenshot = callPackage ../development/python-modules/pyscreenshot { };
|
pyscreenshot = callPackage ../development/python-modules/pyscreenshot { };
|
||||||
|
|
||||||
|
pyscreeze = callPackage ../development/python-modules/pyscreeze { };
|
||||||
|
|
||||||
py_scrypt = callPackage ../development/python-modules/py_scrypt { };
|
py_scrypt = callPackage ../development/python-modules/py_scrypt { };
|
||||||
|
|
||||||
pyscrypt = callPackage ../development/python-modules/pyscrypt { };
|
pyscrypt = callPackage ../development/python-modules/pyscrypt { };
|
||||||
@ -7878,6 +7888,8 @@ in {
|
|||||||
|
|
||||||
pyturbojpeg = callPackage ../development/python-modules/pyturbojpeg { };
|
pyturbojpeg = callPackage ../development/python-modules/pyturbojpeg { };
|
||||||
|
|
||||||
|
pytweening = callPackage ../development/python-modules/pytweening { };
|
||||||
|
|
||||||
pytwitchapi = callPackage ../development/python-modules/pytwitchapi { };
|
pytwitchapi = callPackage ../development/python-modules/pytwitchapi { };
|
||||||
|
|
||||||
pytz = callPackage ../development/python-modules/pytz { };
|
pytz = callPackage ../development/python-modules/pytz { };
|
||||||
|
@ -132,11 +132,6 @@ with self; with super; {
|
|||||||
|
|
||||||
gdcm = disabled super.gdcm;
|
gdcm = disabled super.gdcm;
|
||||||
|
|
||||||
gaia = disabledIf (isPyPy || isPy3k) (toPythonModule (pkgs.gaia.override {
|
|
||||||
pythonPackages = self;
|
|
||||||
pythonSupport = true;
|
|
||||||
})); # gaia isn't supported with python3 and it's not available from pypi
|
|
||||||
|
|
||||||
geant4 = disabled super.geant4;
|
geant4 = disabled super.geant4;
|
||||||
|
|
||||||
geopy = callPackage ../development/python-modules/geopy/2.nix { };
|
geopy = callPackage ../development/python-modules/geopy/2.nix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user