mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 08:36:41 +01:00
Merge master into staging
This commit is contained in:
commit
7945295410
44 changed files with 423 additions and 451 deletions
|
@ -20,14 +20,7 @@ in {
|
|||
|
||||
services.dbus.packages = [ pkgs.iwd ];
|
||||
|
||||
systemd.services.iwd = {
|
||||
description = "Wireless daemon";
|
||||
before = [ "network.target" ];
|
||||
wants = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig.ExecStart = "${pkgs.iwd}/libexec/iwd";
|
||||
};
|
||||
systemd.packages = [ pkgs.iwd ];
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/lib/iwd 0700 root root -"
|
||||
|
|
|
@ -20,6 +20,9 @@ import ./make-test.nix ({ pkgs, ...} : {
|
|||
|
||||
$netdata->waitForUnit("netdata.service");
|
||||
|
||||
# wait for the service to listen before sending a request
|
||||
$netdata->waitForOpenPort(19999);
|
||||
|
||||
# check if the netdata main page loads.
|
||||
$netdata->succeed("curl --fail http://localhost:19999/");
|
||||
|
||||
|
|
|
@ -448,8 +448,8 @@ let
|
|||
|
||||
testScript = ''
|
||||
my $targetList = <<'END';
|
||||
tap0: tap UNKNOWN_FLAGS:800 user 0
|
||||
tun0: tun UNKNOWN_FLAGS:800 user 0
|
||||
tap0: tap persist user 0
|
||||
tun0: tun persist user 0
|
||||
END
|
||||
|
||||
# Wait for networking to come up
|
||||
|
@ -552,15 +552,15 @@ let
|
|||
|
||||
testScript = ''
|
||||
my $targetIPv4Table = <<'END';
|
||||
10.0.0.0/16 scope link mtu 1500
|
||||
10.0.0.0/16 proto static scope link mtu 1500
|
||||
192.168.1.0/24 proto kernel scope link src 192.168.1.2
|
||||
192.168.2.0/24 via 192.168.1.1
|
||||
192.168.2.0/24 via 192.168.1.1 proto static
|
||||
END
|
||||
|
||||
my $targetIPv6Table = <<'END';
|
||||
2001:1470:fffd:2097::/64 proto kernel metric 256 pref medium
|
||||
2001:1470:fffd:2098::/64 via fdfd:b3f0::1 metric 1024 pref medium
|
||||
fdfd:b3f0::/48 metric 1024 pref medium
|
||||
2001:1470:fffd:2098::/64 via fdfd:b3f0::1 proto static metric 1024 pref medium
|
||||
fdfd:b3f0::/48 proto static metric 1024 pref medium
|
||||
END
|
||||
|
||||
$machine->start;
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "nano-wallet-${version}";
|
||||
version = "14.2";
|
||||
version = "15.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nanocurrency";
|
||||
repo = "raiblocks";
|
||||
rev = "V${version}";
|
||||
sha256 = "0jbv5a8sz403a1pqcgl32idk6y0z510h7ikjg1dcxla0rsch6ipl";
|
||||
sha256 = "0ngsnaczw5y709zk52flp6m2c83q3kxfgz0bzi8rzfjxp10ncnz3";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,34 +1,24 @@
|
|||
{ stdenv, fetchurl, chromaprint, fetchpatch, fftw, flac, faad2, mp4v2
|
||||
{ stdenv, fetchFromGitHub, chromaprint, fetchpatch, fftw, flac, faad2, mp4v2
|
||||
, libid3tag, libmad, libopus, libshout, libsndfile, libusb1, libvorbis
|
||||
, pkgconfig, portaudio, portmidi, protobuf, qt4, rubberband, scons, sqlite
|
||||
, taglib, vampSDK
|
||||
, taglib, upower, vampSDK
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mixxx-${version}";
|
||||
version = "2.0.0";
|
||||
version = "2.1.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://downloads.mixxx.org/${name}/${name}-src.tar.gz";
|
||||
sha256 = "0vb71w1yq0xwwsclrn2jj9bk8w4n14rfv5c0aw46c11mp8xz7f71";
|
||||
src = fetchFromGitHub {
|
||||
owner = "mixxxdj";
|
||||
repo = "mixxx";
|
||||
rev = "release-${version}";
|
||||
sha256 = "1fm8lkbnxka4haidf6yr8mb3r6vaxmc97hhrp8pcx0fvq2mnzvy2";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://sources.debian.net/data/main/m/mixxx/2.0.0~dfsg-7.1/debian/patches/0007-fix_gcc6_issue.patch";
|
||||
sha256 = "0kpyv10wcjcvbijk6vpq54gx9sqzrq4kq2qilc1czmisp9qdy5sd";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://622776.bugs.gentoo.org/attachment.cgi?id=487284";
|
||||
name = "sqlite.patch";
|
||||
sha256 = "1qqbd8nrxrjcc1dwvyqfq1k2yz3l071sfcgd2dmpk6j8d4j5kx31";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
chromaprint fftw flac faad2 mp4v2 libid3tag libmad libopus libshout libsndfile
|
||||
libusb1 libvorbis pkgconfig portaudio portmidi protobuf qt4
|
||||
rubberband scons sqlite taglib vampSDK
|
||||
rubberband scons sqlite taglib upower vampSDK
|
||||
];
|
||||
|
||||
sconsFlags = [
|
||||
|
@ -56,7 +46,7 @@ stdenv.mkDerivation rec {
|
|||
homepage = https://mixxx.org;
|
||||
description = "Digital DJ mixing software";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = [ maintainers.aszlig maintainers.goibhniu ];
|
||||
maintainers = [ maintainers.aszlig maintainers.goibhniu maintainers.bfortz ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.29.0";
|
||||
version = "3.30.0";
|
||||
name = "calibre-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.calibre-ebook.com/${version}/${name}.tar.xz";
|
||||
sha256 = "1r29vi8j51r0nnzpjbg34ryvizzkn31sq1iz7z748wjfgr87wmyh";
|
||||
sha256 = "0j7w63kniqnpr8v1aldzbim2dyrk79n23mzw9y56jqd0k47m8zfz";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
}:
|
||||
|
||||
let
|
||||
version = "4.7.5";
|
||||
version = "4.8.1";
|
||||
|
||||
libdc = stdenv.mkDerivation rec {
|
||||
name = "libdivecomputer-ssrf-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://subsurface-divelog.org/downloads/libdivecomputer-subsurface-branch-${version}.tgz";
|
||||
sha256 = "1xsgnmgc7yb46lflx8ynkbdxg2f6sny6xg6caqgx7rf0x1jmjj4x";
|
||||
sha256 = "1x6z08gfp9jldv7vcsdasjcarns43qns9cm8s9w27n0c2lvchjvy";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
@ -70,7 +70,7 @@ in stdenv.mkDerivation rec {
|
|||
|
||||
src = fetchurl {
|
||||
url = "https://subsurface-divelog.org/downloads/Subsurface-${version}.tgz";
|
||||
sha256 = "0qqmnrmj2alr4rc2nqkv8sbdp92xb6j4j468wn6yqvgb23n77b82";
|
||||
sha256 = "0758sw05gjy8sckvaqc0hmbh2kibmzapgp0hlk8rsp1vsldq4vd2";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
|
30
pkgs/applications/misc/xkbd/default.nix
Normal file
30
pkgs/applications/misc/xkbd/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, fetchFromGitHub, freetype, libXrender, libXft, xextproto
|
||||
, xinput, libXi, libXext, libXtst, libXpm, libX11, xproto, autoreconfHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "xkbd-${version}";
|
||||
version = "0.8.18";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mahatma-kaganovich";
|
||||
repo = "xkbd";
|
||||
rev = name;
|
||||
sha256 = "05ry6q75jq545kf6p20nhfywaqf2wdkfiyp6iwdpv9jh238hf7m9";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
freetype libXrender libXft libXext libXtst libXpm libX11
|
||||
libXi xextproto xinput xproto
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/mahatma-kaganovich/xkbd;
|
||||
description = "onscreen soft keyboard for X11";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = [ maintainers.genesis ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -36,11 +36,11 @@ with python'.pkgs;
|
|||
|
||||
buildPythonApplication rec {
|
||||
pname = "FlexGet";
|
||||
version = "2.14.9";
|
||||
version = "2.14.18";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1a8nxfr0rzwwd7b0nxr7zmw04ygbqvnzbi4w4nw2w8xiy46zid3q";
|
||||
sha256 = "1pyvm1d23qy71rg7fzxcal8978kni7sn09zw4s4dsq56g8w80ay9";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
@ -30,13 +30,13 @@
|
|||
|
||||
let
|
||||
pname = "konversation";
|
||||
version = "1.7.4";
|
||||
version = "1.7.5";
|
||||
in mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz";
|
||||
sha256 = "0y4rj4fcl1wsi3y1fhnzad9nf4llwrnipfm9mfm55kqnx1zmpvqp";
|
||||
sha256 = "0h098yhlp36ls6pdvs2r93ig8dv4fys62m0h6wxccprb0qrpbgv0";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
@ -70,13 +70,6 @@ in mkDerivation rec {
|
|||
kdoctools
|
||||
];
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://cgit.kde.org/konversation.git/patch/?id=20018b3d0798421c9cb8a9d983e5a5b34bd88e8d";
|
||||
sha256 = "0y5m5zimfhc0d1xnkzs05c8ig11lhwdn04fk76vi7966hx8wggnn";
|
||||
})
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Integrated IRC client for KDE";
|
||||
license = with lib.licenses; [ gpl2 ];
|
||||
|
|
|
@ -136,6 +136,13 @@ stdenv.mkDerivation rec {
|
|||
url = "https://git.sagemath.org/sage.git/patch?id2=8.4.beta0&id=8bef4fd2876a61969b516fe4eb3b8ad7cc076c5e";
|
||||
sha256 = "00p3hfsfn3w2vxgd9fjd23mz7xfxjfravf8ysjxkyd657jbkpjmk";
|
||||
})
|
||||
|
||||
# https://trac.sagemath.org/ticket/26117
|
||||
(fetchpatch {
|
||||
name = "sympy-1.2.patch";
|
||||
url = "https://git.sagemath.org/sage.git/patch?id2=8.4.beta2&id=d94a0a3a3fb4aec05a6f4d95166d90c284f05c36";
|
||||
sha256 = "0an2xl1pp3jg36kgg2m1vb7sns7rprk1h3d0qy1gxwdab6i7qnvi";
|
||||
})
|
||||
];
|
||||
|
||||
patches = nixPatches ++ packageUpgradePatches ++ [
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "clipgrab-${version}";
|
||||
version = "3.6.8";
|
||||
version = "3.6.9";
|
||||
|
||||
src = fetchurl {
|
||||
sha256 = "0agp97g79mlqcwfz2xk5rdxw4kx0hm92xikdspbpxlfji1mkh10p";
|
||||
sha256 = "16r0h286vqw1bns29sx5x2919pj3y8gxf1k7dpf9xrz0vm2zrc3v";
|
||||
# The .tar.bz2 "Download" link is a binary blob, the source is the .tar.gz!
|
||||
url = "https://download.clipgrab.org/${name}.tar.gz";
|
||||
};
|
||||
|
|
|
@ -1,14 +1,56 @@
|
|||
{ lib, stdenv, buildEnv, haskell, nodejs, fetchurl, makeWrapper }:
|
||||
{ lib, stdenv, buildEnv, haskell, nodejs, fetchurl, makeWrapper, git }:
|
||||
|
||||
# To update:
|
||||
# 1) Update versions in ./update-elm.rb and run it.
|
||||
# 2) Checkout elm-reactor and run `elm-package install -y` inside.
|
||||
# 3) Run ./elm2nix.rb in elm-reactor's directory.
|
||||
# 4) Move the resulting 'package.nix' to 'packages/elm-reactor-elm.nix'.
|
||||
|
||||
# 1) Modify ./update.sh and run it
|
||||
|
||||
# 2) to generate versions.dat:
|
||||
# 2.1) git clone https://github.com/elm/compiler.git
|
||||
# 2.2) cd compiler
|
||||
# 2.3) cabal2nix --shell . | sed 's/"default",/"ghc822",/' > shell.nix
|
||||
# 2.4) nix-shell
|
||||
# 2.5) mkdir .elm
|
||||
# 2.6) export ELM_HOME=$(pwd)/.elm
|
||||
# 2.7) cabal build
|
||||
# 2.8) cp .elm/0.19.0/package/versions.dat ...
|
||||
|
||||
# 3) generate a template for elm-elm.nix with:
|
||||
# (
|
||||
# echo "{";
|
||||
# jq '.dependencies | .direct, .indirect | to_entries | .[] | { (.key) : { version : .value, sha256: "" } } ' \
|
||||
# < ui/browser/elm.json \
|
||||
# | sed 's/:/ =/' \
|
||||
# | sed 's/^[{}]//' \
|
||||
# | sed -E 's/(["}]),?$/\1;/' \
|
||||
# | sed -E 's/"(version|sha256)"/\1/' \
|
||||
# | grep -v '^$';
|
||||
# echo "}"
|
||||
# )
|
||||
#
|
||||
# ... then fill in the sha256s
|
||||
|
||||
# Notes:
|
||||
|
||||
# the elm binary embeds a piece of pre-compiled elm code, used by 'elm
|
||||
# reactor'. this means that the build process for 'elm' effectively
|
||||
# executes 'elm make'. that in turn expects to retrieve the elm
|
||||
# dependencies of that code (elm/core, etc.) from
|
||||
# package.elm-lang.org, as well as a cached bit of metadata
|
||||
# (versions.dat).
|
||||
|
||||
# the makeDotElm function lets us retrieve these dependencies in the
|
||||
# standard nix way. we have to copy them in (rather than symlink) and
|
||||
# make them writable because the elm compiler writes other .dat files
|
||||
# alongside the source code. versions.dat was produced during an
|
||||
# impure build of this same code; the build complains that it can't
|
||||
# update this cache, but continues past that warning.
|
||||
|
||||
# finally, we set ELM_HOME to point to these pre-fetched artifacts so
|
||||
# that the default of ~/.elm isn't used.
|
||||
|
||||
let
|
||||
makeElmStuff = deps:
|
||||
let json = builtins.toJSON (lib.mapAttrs (name: info: info.version) deps);
|
||||
makeDotElm = ver: deps:
|
||||
let versionsDat = ./versions.dat;
|
||||
cmds = lib.mapAttrsToList (name: info: let
|
||||
pkg = stdenv.mkDerivation {
|
||||
|
||||
|
@ -29,80 +71,61 @@ let
|
|||
|
||||
};
|
||||
in ''
|
||||
mkdir -p elm-stuff/packages/${name}
|
||||
ln -s ${pkg} elm-stuff/packages/${name}/${info.version}
|
||||
mkdir -p .elm/${ver}/package/${name}
|
||||
cp -R ${pkg} .elm/${ver}/package/${name}/${info.version}
|
||||
'') deps;
|
||||
in ''
|
||||
export HOME=/tmp
|
||||
mkdir elm-stuff
|
||||
cat > elm-stuff/exact-dependencies.json <<EOF
|
||||
${json}
|
||||
EOF
|
||||
'' + lib.concatStrings cmds;
|
||||
in (lib.concatStrings cmds) + ''
|
||||
mkdir -p .elm/${ver}/package;
|
||||
cp ${versionsDat} .elm/${ver}/package/versions.dat;
|
||||
chmod -R +w .elm
|
||||
'';
|
||||
|
||||
hsPkgs = haskell.packages.ghc802.override {
|
||||
overrides = self: super:
|
||||
let hlib = haskell.lib;
|
||||
elmRelease = import ./packages/release.nix { inherit (self) callPackage; };
|
||||
elmPkgs' = elmRelease.packages;
|
||||
elmPkgs = elmPkgs' // {
|
||||
|
||||
elm-reactor = hlib.overrideCabal elmPkgs'.elm-reactor (drv: {
|
||||
buildTools = drv.buildTools or [] ++ [ self.elm-make ];
|
||||
preConfigure = makeElmStuff (import ./packages/elm-reactor-elm.nix);
|
||||
});
|
||||
|
||||
elm-repl = hlib.overrideCabal elmPkgs'.elm-repl (drv: {
|
||||
doCheck = false;
|
||||
hsPkgs = haskell.packages.ghc822.override {
|
||||
overrides = self: super: with haskell.lib;
|
||||
let elmPkgs = {
|
||||
elm = overrideCabal (self.callPackage ./packages/elm.nix { }) (drv: {
|
||||
# sadly with parallelism most of the time breaks compilation
|
||||
enableParallelBuilding = false;
|
||||
preConfigure = ''
|
||||
export ELM_HOME=`pwd`/.elm
|
||||
'' + (makeDotElm "0.19.0" (import ./packages/elm-elm.nix));
|
||||
buildTools = drv.buildTools or [] ++ [ makeWrapper ];
|
||||
postInstall =
|
||||
let bins = lib.makeBinPath [ nodejs self.elm-make ];
|
||||
in ''
|
||||
wrapProgram $out/bin/elm-repl \
|
||||
--prefix PATH ':' ${bins}
|
||||
'';
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/elm \
|
||||
--prefix PATH ':' ${lib.makeBinPath [ nodejs ]}
|
||||
'';
|
||||
});
|
||||
|
||||
|
||||
|
||||
/*
|
||||
This is not a core Elm package, and it's hosted on GitHub.
|
||||
To update, run:
|
||||
|
||||
cabal2nix --jailbreak --revision refs/tags/foo http://github.com/avh4/elm-format > packages/elm-format.nix
|
||||
|
||||
where foo is a tag for a new version, for example "0.3.1-alpha".
|
||||
where foo is a tag for a new version, for example "0.8.0".
|
||||
*/
|
||||
elm-format = self.callPackage ./packages/elm-format.nix { };
|
||||
elm-interface-to-json = self.callPackage ./packages/elm-interface-to-json.nix {
|
||||
aeson-pretty = self.aeson-pretty_0_7_2;
|
||||
either = hlib.overrideCabal self.either (drv :{
|
||||
jailbreak = true;
|
||||
version = "4.4.1.1";
|
||||
sha256 = "1lrlwqqnm6ibfcydlv5qvvssw7bm0c6yypy0rayjzv1znq7wp1xh";
|
||||
libraryHaskellDepends = drv.libraryHaskellDepends or [] ++ [
|
||||
self.exceptions self.free self.mmorph self.monad-control
|
||||
self.MonadRandom self.profunctors self.transformers
|
||||
self.transformers-base
|
||||
];
|
||||
});
|
||||
};
|
||||
elm-format = overrideCabal (self.callPackage ./packages/elm-format.nix { }) (drv: {
|
||||
# https://github.com/avh4/elm-format/issues/529
|
||||
patchPhase = ''
|
||||
cat >Setup.hs <<EOF
|
||||
import Distribution.Simple
|
||||
main = defaultMain
|
||||
EOF
|
||||
|
||||
sed -i '/Build_elm_format/d' elm-format.cabal
|
||||
sed -i 's/Build_elm_format.gitDescribe/""/' src/ElmFormat/Version.hs
|
||||
sed -i '/Build_elm_format/d' src/ElmFormat/Version.hs
|
||||
'';
|
||||
});
|
||||
};
|
||||
in elmPkgs // {
|
||||
inherit elmPkgs;
|
||||
elmVersion = elmRelease.version;
|
||||
# https://github.com/elm-lang/elm-compiler/issues/1566
|
||||
indents = hlib.overrideCabal super.indents (drv: {
|
||||
version = "0.3.3";
|
||||
#test dep tasty has a version mismatch
|
||||
doCheck = false;
|
||||
sha256 = "16lz21bp9j14xilnq8yym22p3saxvc9fsgfcf5awn2a6i6n527xn";
|
||||
libraryHaskellDepends = drv.libraryHaskellDepends ++ [super.concatenative];
|
||||
});
|
||||
elmVersion = elmPkgs.elm.version;
|
||||
|
||||
# Needed for elm-format
|
||||
indents = self.callPackage ./packages/indents.nix {};
|
||||
};
|
||||
};
|
||||
in hsPkgs.elmPkgs // {
|
||||
elm = lib.hiPrio (buildEnv {
|
||||
name = "elm-${hsPkgs.elmVersion}";
|
||||
paths = lib.mapAttrsToList (name: pkg: pkg) hsPkgs.elmPkgs;
|
||||
pathsToLink = [ "/bin" ];
|
||||
});
|
||||
}
|
||||
in hsPkgs.elmPkgs
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
{ mkDerivation, aeson, aeson-pretty_0_7_2, ansi-terminal, ansi-wl-pprint
|
||||
, base, binary, bytestring, containers, directory, edit-distance
|
||||
, fetchgit, filemanip, filepath, HUnit, indents
|
||||
, language-ecmascript, language-glsl, mtl, parsec, pretty, process
|
||||
, QuickCheck, stdenv, test-framework, test-framework-hunit
|
||||
, test-framework-quickcheck2, text, union-find
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "elm-compiler";
|
||||
version = "0.18";
|
||||
src = fetchgit {
|
||||
url = "https://github.com/elm-lang/elm-compiler";
|
||||
sha256 = "09fmrbfpc1kzc3p9h79w57b9qjhajdswc4jfm9gyjw95vsiwasgh";
|
||||
rev = "eb97f2a5dd5421c708a91b71442e69d02453cc80";
|
||||
};
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
libraryHaskellDepends = [
|
||||
aeson aeson-pretty_0_7_2 ansi-terminal ansi-wl-pprint base binary
|
||||
bytestring containers directory edit-distance filepath indents
|
||||
language-ecmascript language-glsl mtl parsec pretty process text
|
||||
union-find
|
||||
];
|
||||
executableHaskellDepends = [
|
||||
aeson base binary directory filepath process text
|
||||
];
|
||||
testHaskellDepends = [
|
||||
aeson aeson-pretty_0_7_2 ansi-terminal ansi-wl-pprint base binary
|
||||
bytestring containers directory edit-distance filemanip filepath
|
||||
HUnit indents language-ecmascript language-glsl mtl parsec pretty
|
||||
process QuickCheck test-framework test-framework-hunit
|
||||
test-framework-quickcheck2 text union-find
|
||||
];
|
||||
jailbreak = true;
|
||||
homepage = http://elm-lang.org;
|
||||
description = "Values to help with elm-package, elm-make, and elm-lang.org.";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
# added manually since tests are not passing
|
||||
# https://travis-ci.org/elm-lang/elm-compiler/builds/176845852
|
||||
doCheck = false;
|
||||
}
|
50
pkgs/development/compilers/elm/packages/elm-elm.nix
Normal file
50
pkgs/development/compilers/elm/packages/elm-elm.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
"elm/browser" = {
|
||||
version = "1.0.0";
|
||||
sha256 = "1apmvyax93nvmagwj00y16zx10kfv640cxpi64xgqbgy7d2wphy4";
|
||||
};
|
||||
"elm/core" = {
|
||||
version = "1.0.0";
|
||||
sha256 = "10kr86h4v5h4p0586q406a5wbl8xvr1jyrf6097zp2wb8sv21ylw";
|
||||
};
|
||||
"elm/html" = {
|
||||
version = "1.0.0";
|
||||
sha256 = "1n3gpzmpqqdsldys4ipgyl1zacn0kbpc3g4v3hdpiyfjlgh8bf3k";
|
||||
};
|
||||
"elm/http" = {
|
||||
version = "1.0.0";
|
||||
sha256 = "1igmm89ialzrjib1j8xagkxalq1x2gj4l0hfxcd66mpwmvg7psl8";
|
||||
};
|
||||
"elm/json" = {
|
||||
version = "1.0.0";
|
||||
sha256 = "1g0hafkqf2q633r7ir9wxpb1lnlzskhpsyi0h5bkzj0gl072zfnb";
|
||||
};
|
||||
"elm/project-metadata-utils" = {
|
||||
version = "1.0.0";
|
||||
sha256 = "1d4rd4grrnbdvj9gf00h7dr6hbkjzawgkzpizfrkp1z1pyr3mvq9";
|
||||
};
|
||||
"elm/svg" = {
|
||||
version = "1.0.0";
|
||||
sha256 = "08x0v8p9wm699jjmsnbq69pxv3jh60j4f6fg7y6hyr7xxj85y390";
|
||||
};
|
||||
"elm-explorations/markdown" = {
|
||||
version = "1.0.0";
|
||||
sha256 = "0k3110ixa4wwf3vkkdplagwah9ypr965qxr1y147rnsc1xsxmr6y";
|
||||
};
|
||||
"elm/parser" = {
|
||||
version = "1.0.0";
|
||||
sha256 = "0k4zlq30lrvawqvzwbvsl0hrmwf9s832mb41z7fdspm4549dj7wc";
|
||||
};
|
||||
"elm/time" = {
|
||||
version = "1.0.0";
|
||||
sha256 = "0vch7i86vn0x8b850w1p69vplll1bnbkp8s383z7pinyg94cm2z1";
|
||||
};
|
||||
"elm/url" = {
|
||||
version = "1.0.0";
|
||||
sha256 = "0av8x5syid40sgpl5vd7pry2rq0q4pga28b4yykn9gd9v12rs3l4";
|
||||
};
|
||||
"elm/virtual-dom" = {
|
||||
version = "1.0.0";
|
||||
sha256 = "0hm8g92h7z39km325dlnhk8n00nlyjkqp3r3jppr37k2k13md6aq";
|
||||
};
|
||||
}
|
|
@ -6,14 +6,12 @@
|
|||
}:
|
||||
mkDerivation {
|
||||
pname = "elm-format";
|
||||
version = "0.7.0";
|
||||
version = "0.8.0";
|
||||
src = fetchgit {
|
||||
url = "http://github.com/avh4/elm-format";
|
||||
sha256 = "1snl2lrrzdwgzi68agi3sdw84aslj04pzzxpm1mam9ic6dzhn3jf";
|
||||
rev = "da4b415c6a2b7e77b7d9f00beca3e45230e603fb";
|
||||
sha256 = "1w79xvsyq98vfz3jb4sv8433vdh6pcg8s7yh54lcxzr1p08yhsb6";
|
||||
rev = "f19ac28046d7e83ff95f845849c033cc616f1bd6";
|
||||
};
|
||||
|
||||
doHaddock = false;
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
setupHaskellDepends = [ base Cabal directory filepath process ];
|
||||
|
@ -27,15 +25,10 @@ mkDerivation {
|
|||
base cmark containers HUnit mtl parsec QuickCheck quickcheck-io
|
||||
split tasty tasty-golden tasty-hunit tasty-quickcheck text
|
||||
];
|
||||
doHaddock = false;
|
||||
jailbreak = true;
|
||||
postInstall = ''
|
||||
ln -s $out/bin/elm-format-0.18 $out/bin/elm-format
|
||||
'';
|
||||
postPatch = ''
|
||||
sed -i "s|desc <-.*||" ./Setup.hs
|
||||
sed -i "s|gitDescribe = .*|gitDescribe = \\\\\"da4b415c\\\\\"\"|" ./Setup.hs
|
||||
'';
|
||||
homepage = http://elm-lang.org;
|
||||
doCheck = false;
|
||||
homepage = "http://elm-lang.org";
|
||||
description = "A source code formatter for Elm";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
}
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
{ mkDerivation, aeson, aeson-pretty, base, binary, bytestring
|
||||
, concatenative, containers, directory, either, elm-compiler
|
||||
, filemanip, filepath, indents, optparse-applicative, parsec
|
||||
, stdenv, text, transformers, fetchgit
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "elm-interface-to-json";
|
||||
version = "0.1.0.0";
|
||||
src = fetchgit {
|
||||
url = "https://github.com/stoeffel/elm-interface-to-json";
|
||||
sha256 = "1izc78w91m7nrc9i2b3lgy3kyjsy4d5mkkblx96ws0bp3dpm5f9k";
|
||||
rev = "9884c1c997a55f11cf7c3d99a8afa72cf2e97323";
|
||||
};
|
||||
isLibrary = false;
|
||||
isExecutable = true;
|
||||
jailbreak = true;
|
||||
executableHaskellDepends = [
|
||||
aeson aeson-pretty base binary bytestring concatenative containers
|
||||
directory either elm-compiler filemanip filepath indents
|
||||
optparse-applicative parsec text transformers
|
||||
];
|
||||
homepage = "https://github.com/githubuser/elm-interface-to-json#readme";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
{ mkDerivation, aeson, ansi-terminal, ansi-wl-pprint, base, binary
|
||||
, blaze-html, blaze-markup, bytestring, containers, directory
|
||||
, elm-compiler, elm-package, fetchgit, filepath, mtl
|
||||
, optparse-applicative, raw-strings-qq, stdenv, text, time
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "elm-make";
|
||||
version = "0.18";
|
||||
src = fetchgit {
|
||||
url = "https://github.com/elm-lang/elm-make";
|
||||
sha256 = "1yq4w4yqignlc2si5ns53pmz0a99gix5d2qgi6x7finf7i6sxyw2";
|
||||
rev = "1a554833a70694ab142b9179bfac996143f68d9e";
|
||||
};
|
||||
isLibrary = false;
|
||||
isExecutable = true;
|
||||
executableHaskellDepends = [
|
||||
aeson ansi-terminal ansi-wl-pprint base binary blaze-html
|
||||
blaze-markup bytestring containers directory elm-compiler
|
||||
elm-package filepath mtl optparse-applicative raw-strings-qq text
|
||||
time
|
||||
];
|
||||
jailbreak = true;
|
||||
homepage = http://elm-lang.org;
|
||||
description = "A build tool for Elm projects";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
{ mkDerivation, aeson, aeson-pretty_0_7_2, ansi-wl-pprint, base, binary
|
||||
, bytestring, containers, directory, edit-distance, elm-compiler
|
||||
, fetchgit, fetchurl, filepath, HTTP, http-client, http-client-tls
|
||||
, http-types, mtl, network, optparse-applicative, parallel-io
|
||||
, pretty, stdenv, text, time, unordered-containers, vector
|
||||
, zip-archive
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "elm-package";
|
||||
version = "0.18";
|
||||
src = fetchgit {
|
||||
url = "https://github.com/elm-lang/elm-package";
|
||||
sha256 = "19krnkjvfk02gmmic5h5i1i0lw7s30927bnd5g57cj8nqbigysv7";
|
||||
rev = "8bd150314bacab5b6fc451927aa01deec2276fbf";
|
||||
};
|
||||
patches = fetchurl {
|
||||
url = https://github.com/jerith666/elm-package/commit/40bab60c2fbff70812cc24cdd97f5e09db3844ad.patch;
|
||||
sha256 = "0j6pi6cv3h9s6vz68bh0c73fysvk83yhhk56kgshvnrmnpcb3jib";
|
||||
};
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
libraryHaskellDepends = [
|
||||
aeson aeson-pretty_0_7_2 ansi-wl-pprint base binary bytestring containers
|
||||
directory edit-distance elm-compiler filepath HTTP http-client
|
||||
http-client-tls http-types mtl network parallel-io text time
|
||||
unordered-containers vector zip-archive
|
||||
];
|
||||
executableHaskellDepends = [
|
||||
aeson aeson-pretty_0_7_2 ansi-wl-pprint base binary bytestring containers
|
||||
directory edit-distance elm-compiler filepath HTTP http-client
|
||||
http-client-tls http-types mtl network optparse-applicative
|
||||
parallel-io pretty text time unordered-containers vector
|
||||
zip-archive
|
||||
];
|
||||
jailbreak = true;
|
||||
homepage = https://github.com/elm-lang/elm-package;
|
||||
description = "Package manager for Elm libraries";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
"elm-lang/virtual-dom" = {
|
||||
version = "2.0.1";
|
||||
sha256 = "19nfjx072m7a7bx8flc50vbmiww172jmscyq9x91cr2kby5hvbw3";
|
||||
};
|
||||
"evancz/elm-markdown" = {
|
||||
version = "3.0.1";
|
||||
sha256 = "144lzpcapf2mhqiz90mkllmm4skrcs0iha1daps42qn3xps7hvmj";
|
||||
};
|
||||
"elm-lang/html" = {
|
||||
version = "2.0.0";
|
||||
sha256 = "05sqjd5n8jnq4lv5v0ipcg98b8im1isnnl4wns1zzn4w5nbrjjzi";
|
||||
};
|
||||
"elm-lang/svg" = {
|
||||
version = "2.0.0";
|
||||
sha256 = "1c7p967n1yhynravqwgh80vprwz7r2r1n0x3icn5wzk9iaqs069l";
|
||||
};
|
||||
"elm-lang/core" = {
|
||||
version = "5.0.0";
|
||||
sha256 = "0gqyc09bh43pi7r2cizyjm5y0zpgarv3is17dl325qvxb9s1y2gn";
|
||||
};
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
{ mkDerivation, aeson, base, blaze-html, blaze-markup, bytestring
|
||||
, cmdargs, containers, directory, elm-compiler, elm-package
|
||||
, fetchgit, file-embed, filepath, fsnotify, mtl, process, snap-core
|
||||
, snap-server, stdenv, template-haskell, text, time, transformers
|
||||
, unordered-containers, utf8-string, websockets, websockets-snap
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "elm-reactor";
|
||||
version = "0.18";
|
||||
src = fetchgit {
|
||||
url = "https://github.com/elm-lang/elm-reactor";
|
||||
sha256 = "0lpidsckyfcr8d6bln735d98dx7ga7j1vyssw0qsv8ijj18gxx65";
|
||||
rev = "c519d4ec0aaf2f043a416fe858346b0181eca516";
|
||||
};
|
||||
isLibrary = false;
|
||||
isExecutable = true;
|
||||
executableHaskellDepends = [
|
||||
aeson base blaze-html blaze-markup bytestring cmdargs containers
|
||||
directory elm-compiler elm-package file-embed filepath fsnotify mtl
|
||||
process snap-core snap-server template-haskell text time
|
||||
transformers unordered-containers utf8-string websockets
|
||||
websockets-snap
|
||||
];
|
||||
jailbreak = true;
|
||||
homepage = http://elm-lang.org;
|
||||
description = "Interactive development tool for Elm programs";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
{ mkDerivation, base, binary, bytestring, bytestring-trie, cmdargs
|
||||
, containers, directory, elm-compiler, elm-package, fetchgit
|
||||
, filepath, haskeline, HUnit, mtl, parsec, QuickCheck, stdenv
|
||||
, test-framework, test-framework-hunit, test-framework-quickcheck2
|
||||
, text
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "elm-repl";
|
||||
version = "0.18";
|
||||
src = fetchgit {
|
||||
url = "https://github.com/elm-lang/elm-repl";
|
||||
sha256 = "112fzykils4lqz4pc44q4mwvxg0px0zfwx511bfvblrxkwwqlfb5";
|
||||
rev = "85f0bcfc28ea6c8a99a360d55c21ff25a556f9fe";
|
||||
};
|
||||
isLibrary = false;
|
||||
isExecutable = true;
|
||||
executableHaskellDepends = [
|
||||
base binary bytestring bytestring-trie cmdargs containers directory
|
||||
elm-compiler elm-package filepath haskeline mtl parsec text
|
||||
];
|
||||
testHaskellDepends = [
|
||||
base bytestring bytestring-trie cmdargs directory elm-compiler
|
||||
elm-package filepath haskeline HUnit mtl parsec QuickCheck
|
||||
test-framework test-framework-hunit test-framework-quickcheck2
|
||||
];
|
||||
jailbreak = true;
|
||||
homepage = https://github.com/elm-lang/elm-repl;
|
||||
description = "a REPL for Elm";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
}
|
30
pkgs/development/compilers/elm/packages/elm.nix
Normal file
30
pkgs/development/compilers/elm/packages/elm.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ mkDerivation, ansi-terminal, ansi-wl-pprint, base, binary
|
||||
, bytestring, containers, directory, edit-distance, fetchgit
|
||||
, file-embed, filepath, ghc-prim, haskeline, HTTP, http-client
|
||||
, http-client-tls, http-types, language-glsl, logict, mtl, network
|
||||
, parsec, process, raw-strings-qq, scientific, SHA, snap-core
|
||||
, snap-server, stdenv, template-haskell, text, time
|
||||
, unordered-containers, utf8-string, vector, zip-archive
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "elm";
|
||||
version = "0.19.0";
|
||||
src = fetchgit {
|
||||
url = "https://github.com/elm/compiler";
|
||||
sha256 = "0s93z9vr0vp5w894ghc5s34nsq09sg1msf59zfiba87sid5vgjqy";
|
||||
rev = "32059a289d27e303fa1665e9ada0a52eb688f302";
|
||||
};
|
||||
isLibrary = false;
|
||||
isExecutable = true;
|
||||
executableHaskellDepends = [
|
||||
ansi-terminal ansi-wl-pprint base binary bytestring containers
|
||||
directory edit-distance file-embed filepath ghc-prim haskeline HTTP
|
||||
http-client http-client-tls http-types language-glsl logict mtl
|
||||
network parsec process raw-strings-qq scientific SHA snap-core
|
||||
snap-server template-haskell text time unordered-containers
|
||||
utf8-string vector zip-archive
|
||||
];
|
||||
homepage = "http://elm-lang.org";
|
||||
description = "The `elm` command line interface";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
}
|
11
pkgs/development/compilers/elm/packages/indents.nix
Normal file
11
pkgs/development/compilers/elm/packages/indents.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ mkDerivation, base, concatenative, mtl, parsec, stdenv }:
|
||||
mkDerivation {
|
||||
pname = "indents";
|
||||
version = "0.3.3";
|
||||
sha256 = "b61f51ac894609cb5571cc3ded12db5de97185a8de236c69ec24c87457109f9a";
|
||||
libraryHaskellDepends = [ base concatenative mtl parsec ];
|
||||
doCheck = false;
|
||||
homepage = "http://patch-tag.com/r/salazar/indents";
|
||||
description = "indentation sensitive parser-combinators for parsec";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
# This file is auto-generated by ./update-elm.rb.
|
||||
# Please, do not modify it by hand!
|
||||
{ callPackage }:
|
||||
{
|
||||
version = "0.18.0";
|
||||
packages = {
|
||||
elm-compiler = callPackage ./elm-compiler.nix { };
|
||||
elm-package = callPackage ./elm-package.nix { };
|
||||
elm-make = callPackage ./elm-make.nix { };
|
||||
elm-reactor = callPackage ./elm-reactor.nix { };
|
||||
elm-repl = callPackage ./elm-repl.nix { };
|
||||
};
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
# Take those from https://github.com/elm-lang/elm-platform/blob/master/installers/BuildFromSource.hs
|
||||
$elm_version = "0.18.0"
|
||||
$elm_packages = { "elm-compiler" => "0.18.0",
|
||||
"elm-package" => "0.18.0",
|
||||
"elm-make" => "0.18.0",
|
||||
"elm-reactor" => "0.18.0",
|
||||
"elm-repl" => "0.18.0"
|
||||
}
|
||||
|
||||
for pkg, ver in $elm_packages
|
||||
system "cabal2nix https://github.com/elm-lang/#{pkg} --revision refs/tags/#{ver} --jailbreak > packages/#{pkg}.nix"
|
||||
end
|
||||
|
||||
File.open("packages/release.nix", 'w') do |file|
|
||||
file.puts "# This file is auto-generated by ./update-elm.rb."
|
||||
file.puts "# Please, do not modify it by hand!"
|
||||
file.puts "{ callPackage }:"
|
||||
file.puts "{"
|
||||
file.puts " version = \"#{$elm_version}\";"
|
||||
file.puts " packages = {"
|
||||
for pkg, ver in $elm_packages
|
||||
file.puts " #{pkg} = callPackage ./#{pkg}.nix { };"
|
||||
end
|
||||
file.puts " };"
|
||||
file.puts "}"
|
||||
end
|
3
pkgs/development/compilers/elm/update.sh
Executable file
3
pkgs/development/compilers/elm/update.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
cabal2nix https://github.com/elm/compiler --revision 32059a289d27e303fa1665e9ada0a52eb688f302 > packages/elm.nix
|
||||
cabal2nix --no-check cabal://indents-0.3.3 > packages/indents.nix
|
||||
cabal2nix --no-haddock --no-check --jailbreak --revision refs/tags/0.8.0 http://github.com/avh4/elm-format > packages/elm-format.nix
|
BIN
pkgs/development/compilers/elm/versions.dat
Normal file
BIN
pkgs/development/compilers/elm/versions.dat
Normal file
Binary file not shown.
|
@ -672,6 +672,9 @@ self: super: {
|
|||
# https://github.com/bos/bloomfilter/issues/7
|
||||
bloomfilter = appendPatch super.bloomfilter ./patches/bloomfilter-fix-on-32bit.patch;
|
||||
|
||||
# https://github.com/ashutoshrishi/hunspell-hs/pull/3
|
||||
hunspell-hs = addPkgconfigDepend (dontCheck (appendPatch super.hunspell-hs ./patches/hunspell.patch)) pkgs.hunspell;
|
||||
|
||||
# https://github.com/pxqr/base32-bytestring/issues/4
|
||||
base32-bytestring = dontCheck super.base32-bytestring;
|
||||
|
||||
|
|
|
@ -46,6 +46,10 @@ in
|
|||
, isExecutable ? false, isLibrary ? !isExecutable
|
||||
, jailbreak ? false
|
||||
, license
|
||||
# We cannot enable -j<n> parallelism for libraries because GHC is far more
|
||||
# likely to generate a non-determistic library ID in that case. Further
|
||||
# details are at <https://github.com/peti/ghc-library-id-bug>.
|
||||
, enableParallelBuilding ? (stdenv.lib.versionOlder "7.8" ghc.version && !isLibrary) || stdenv.lib.versionOlder "8.0.1" ghc.version
|
||||
, maintainers ? []
|
||||
, doCoverage ? false
|
||||
, doHaddock ? !(ghc.isHaLVM or false)
|
||||
|
@ -112,11 +116,6 @@ let
|
|||
main = defaultMain
|
||||
'';
|
||||
|
||||
# We cannot enable -j<n> parallelism for libraries because GHC is far more
|
||||
# likely to generate a non-determistic library ID in that case. Further
|
||||
# details are at <https://github.com/peti/ghc-library-id-bug>.
|
||||
enableParallelBuilding = (versionOlder "7.8" ghc.version && !isLibrary) || versionOlder "8.0.1" ghc.version;
|
||||
|
||||
crossCabalFlags = [
|
||||
"--with-ghc=${ghc.targetPrefix}ghc"
|
||||
"--with-ghc-pkg=${ghc.targetPrefix}ghc-pkg"
|
||||
|
|
30
pkgs/development/haskell-modules/patches/hunspell.patch
Normal file
30
pkgs/development/haskell-modules/patches/hunspell.patch
Normal file
|
@ -0,0 +1,30 @@
|
|||
diff -Naur hunspell-hs-0.1.0.0.orig/hunspell-hs.cabal hunspell-hs-0.1.0.0/hunspell-hs.cabal
|
||||
--- hunspell-hs-0.1.0.0.orig/hunspell-hs.cabal 2018-08-26 20:23:33.053763300 +0200
|
||||
+++ hunspell-hs-0.1.0.0/hunspell-hs.cabal 2018-08-26 20:42:05.886074510 +0200
|
||||
@@ -37,7 +37,7 @@
|
||||
base >=4.7 && <5
|
||||
, stm
|
||||
if os(linux)
|
||||
- extra-libraries:
|
||||
+ pkgconfig-depends:
|
||||
hunspell
|
||||
if os(darwin)
|
||||
include-dirs:
|
||||
@@ -63,7 +63,7 @@
|
||||
, hunspell-hs
|
||||
, stm
|
||||
if os(linux)
|
||||
- extra-libraries:
|
||||
+ pkgconfig-depends:
|
||||
hunspell
|
||||
if os(darwin)
|
||||
include-dirs:
|
||||
@@ -88,7 +88,7 @@
|
||||
, hunspell-hs
|
||||
, stm
|
||||
if os(linux)
|
||||
- extra-libraries:
|
||||
+ pkgconfig-depends:
|
||||
hunspell
|
||||
if os(darwin)
|
||||
include-dirs:
|
|
@ -134,7 +134,7 @@ EOF
|
|||
harfbuzz icu
|
||||
|
||||
libevent
|
||||
] ++ optionals stdenv.hostPlatform.isArm [
|
||||
] ++ optionals (stdenv.hostPlatform.isAarch32 || stdenv.hostPlatform.isAarch64) [
|
||||
ffmpeg
|
||||
] ++ optionals (!stdenv.isDarwin) [
|
||||
dbus zlib minizip snappy nss protobuf jsoncpp
|
||||
|
|
|
@ -1,22 +1,26 @@
|
|||
{ stdenv, fetchurl,
|
||||
bison, flex, expat, file
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook,
|
||||
texinfo, bison, flex, expat, file
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "udunits-2.2.26";
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.unidata.ucar.edu/pub/udunits/${name}.tar.gz";
|
||||
sha256 = "0v9mqw4drnkzkm57331ail6yvs9485jmi37s40lhvmf7r5lli3rn";
|
||||
};
|
||||
name = "udunits-${version}";
|
||||
version = "2.2.27.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Unidata";
|
||||
repo = "UDUNITS-2";
|
||||
rev = "v${version}";
|
||||
sha256 = "0621pac24c842dyipzaa59rh6pza9phdqi3snd4cq4pib0wjw6gm";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bison flex file ];
|
||||
buildInputs = [ expat ];
|
||||
nativeBuildInputs = [ autoreconfHook texinfo bison flex file ];
|
||||
buildInputs = [ expat ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://www.unidata.ucar.edu/software/udunits/;
|
||||
description = "A C-based package for the programatic handling of units of physical quantities";
|
||||
license = licenses.bsdOriginal;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
};
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://www.unidata.ucar.edu/software/udunits/;
|
||||
description = "A C-based package for the programatic handling of units of physical quantities";
|
||||
license = licenses.bsdOriginal;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8,44 +8,36 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "sympy";
|
||||
version = "1.1.1";
|
||||
version = "1.2"; # Upgrades may break sage. Please test.
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ac5b57691bc43919dcc21167660a57cc51797c28a4301a6144eff07b751216a4";
|
||||
sha256 = "0pr2v7dl51ngch1cfs423qsb472l9ys1m8m7vrhhh99fsxqa0v18";
|
||||
};
|
||||
|
||||
checkInputs = [ glibcLocales ];
|
||||
|
||||
propagatedBuildInputs = [ mpmath ];
|
||||
|
||||
# Bunch of failures including transients.
|
||||
# some tests fail: https://github.com/sympy/sympy/issues/15149
|
||||
doCheck = false;
|
||||
|
||||
patches = [
|
||||
# to be fixed by https://github.com/sympy/sympy/pull/13476
|
||||
(fetchpatch {
|
||||
url = "https://git.sagemath.org/sage.git/plain/build/pkgs/sympy/patches/03_undeffun_sage.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
|
||||
sha256 = "1mh2va1rlgizgvx8yzqwgvbf5wvswarn511002b361mc8yy0bnhr";
|
||||
})
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export LANG="en_US.UTF-8"
|
||||
'';
|
||||
|
||||
patches = [
|
||||
# see https://trac.sagemath.org/ticket/20204 and https://github.com/sympy/sympy/issues/12825
|
||||
# There is also an upstream patch for this, included in the next release (PR #128826).
|
||||
# However that doesn't quite fix the issue yet. Apparently some changes by sage are required.
|
||||
# TODO re-evaluate the change once a new sympy version is released (open a sage trac ticket about
|
||||
# it).
|
||||
(fetchpatch {
|
||||
url = "https://git.sagemath.org/sage.git/plain/build/pkgs/sympy/patches/03_undeffun_sage.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
|
||||
sha256 = "1mh2va1rlgizgvx8yzqwgvbf5wvswarn511002b361mc8yy0bnhr";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://github.com/sympy/sympy/pull/13276.patch";
|
||||
sha256 = "1rz74b5c74vwh3pj9axxgh610i02l3555vvsvr4a15ya7siw7zxh";
|
||||
})
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A Python library for symbolic mathematics";
|
||||
homepage = http://www.sympy.org/;
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ lovek323 ];
|
||||
maintainers = with lib.maintainers; [ lovek323 timokau ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
assert jdk != null;
|
||||
|
||||
let version = "3.5.3"; in
|
||||
let version = "3.5.4"; in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "apache-maven-${version}";
|
||||
|
||||
|
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/maven/maven-3/${version}/binaries/${name}-bin.tar.gz";
|
||||
sha256 = "0244mpziz4rw35x2cahsqlxpnygvi6qpll16g4kx87db7wvmcadm";
|
||||
sha256 = "0kd1jzlz3b2kglppi85h7286vdwjdmm7avvpwgppgjv42g4v2l6f";
|
||||
};
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
name = "tokei-${version}";
|
||||
version = "7.0.3";
|
||||
version = "8.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Aaronepower";
|
||||
repo = "tokei";
|
||||
rev = "v${version}";
|
||||
sha256 = "1n2ddwmyd414p6a98khq8y0bmljwcclw30wy5zy5b6z1l40yxcza";
|
||||
sha256 = "1sfwmjlvjrd8r0ynnayw7g3514mfiky2j30byphaagdw4jkxbd7c";
|
||||
};
|
||||
|
||||
cargoSha256 = "0ngqk8nnw00s25y91vgsl37j26xl2ws75l3lvklf9gbd4bi01crv";
|
||||
cargoSha256 = "0v29gych757h7vv5jsg7rpl705gpqn0ya8ai53582qd2cc6yz4c3";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Count code, quickly";
|
||||
|
|
56
pkgs/games/endgame-singularity/default.nix
Normal file
56
pkgs/games/endgame-singularity/default.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
{ stdenv, fetchurl, unzip, python2 }:
|
||||
|
||||
python2.pkgs.buildPythonApplication rec {
|
||||
pname = "endgame-singularity";
|
||||
version = "0.30c";
|
||||
format = "other";
|
||||
|
||||
srcs = [
|
||||
(fetchurl {
|
||||
url = "http://www.emhsoft.com/singularity/singularity-${version}-src.tar.gz";
|
||||
sha256 = "13zjhf67gmla67nkfpxb01rxs8j9n4hs0s4n9lnnq4zgb709yxgl";
|
||||
})
|
||||
(fetchurl {
|
||||
url = "http://www.emhsoft.com/singularity/endgame-singularity-music-007.zip";
|
||||
sha256 = "0vf2qaf66jh56728pq1zbnw50yckjz6pf6c6qw6dl7vk60kkqnpb";
|
||||
})
|
||||
];
|
||||
sourceRoot = ".";
|
||||
|
||||
nativeBuildInputs = [ unzip ]; # The music is zipped
|
||||
propagatedBuildInputs = with python2.pkgs; [ pygame numpy ];
|
||||
|
||||
# This is not an error: it needs both compilation rounds
|
||||
buildPhase = ''
|
||||
${python2.interpreter} -m compileall "singularity-${version}"
|
||||
${python2.interpreter} -O -m compileall "singularity-${version}"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 "singularity-${version}/singularity.py" "$out/share/singularity.py"
|
||||
install -Dm644 "singularity-${version}/singularity.pyo" "$out/share/singularity.pyo"
|
||||
install -Dm644 "singularity-${version}/singularity.pyc" "$out/share/singularity.pyc"
|
||||
cp -R "singularity-${version}/code" "singularity-${version}/data" "$out/share/"
|
||||
cp -R "endgame-singularity-music-007" "$out/share/music"
|
||||
'';
|
||||
|
||||
# Tell it where to find python libraries
|
||||
# Also cd to the same directory as the code, since it uses relative paths
|
||||
postFixup = ''
|
||||
makeWrapper "${python2.interpreter}" "$out/bin/endgame-singularity" \
|
||||
--set PYTHONPATH "$PYTHONPATH" \
|
||||
--run "cd \"$out/share\"" \
|
||||
--add-flags "$out/share/singularity.py"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.emhsoft.com/singularity/;
|
||||
description = "A simulation game about strong AI";
|
||||
longDescription = ''
|
||||
A simulation of a true AI. Go from computer to computer, pursued by the
|
||||
entire world. Keep hidden, and you might have a chance
|
||||
'';
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
maintainers = with stdenv.lib.maintainers; [ fgaz ];
|
||||
};
|
||||
}
|
|
@ -1,19 +1,19 @@
|
|||
{ stdenv, fetchgit, autoreconfHook, readline, python3Packages }:
|
||||
{ stdenv, fetchgit, autoreconfHook, coreutils, readline, python3Packages }:
|
||||
|
||||
let
|
||||
ell = fetchgit {
|
||||
url = https://git.kernel.org/pub/scm/libs/ell/ell.git;
|
||||
rev = "0.7";
|
||||
sha256 = "095psnpfdy107z5qgi5zw0icqxa44dfx02lza3pd8j4ybj57n0l7";
|
||||
rev = "0.9";
|
||||
sha256 = "1kg7cx7ir8bvz33n624ncrq9r4fh7rg9z22fly894a3mk1imq22p";
|
||||
};
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "iwd-${version}";
|
||||
version = "0.4";
|
||||
version = "0.7";
|
||||
|
||||
src = fetchgit {
|
||||
url = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
|
||||
rev = version;
|
||||
sha256 = "1hib256jm70k6jlx486jrcv0iip52divbzhvb0f455yh28qfk0hs";
|
||||
sha256 = "0q76fh6fcl7nxyjl8z2n4plp2qaxc1fqx575by6xqf1rnv4nk0ab";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -35,8 +35,9 @@ in stdenv.mkDerivation rec {
|
|||
|
||||
configureFlags = [
|
||||
"--with-dbus-datadir=$(out)/etc/"
|
||||
"--localstatedir=/var"
|
||||
"--disable-systemd-service"
|
||||
"--with-dbus-busdir=$(out)/usr/share/dbus-1/system-services/"
|
||||
"--with-systemd-unitdir=$(out)/lib/systemd/system/"
|
||||
"--localstatedir=/var/"
|
||||
];
|
||||
|
||||
postUnpack = ''
|
||||
|
@ -55,6 +56,11 @@ in stdenv.mkDerivation rec {
|
|||
wrapPythonPrograms
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $out/usr/share/dbus-1/system-services/net.connman.iwd.service \
|
||||
--replace /bin/false ${coreutils}/bin/false
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://git.kernel.org/pub/scm/network/wireless/iwd.git;
|
||||
description = "Wireless daemon for Linux";
|
||||
|
|
|
@ -302,7 +302,7 @@ let
|
|||
CIFS_XATTR = yes;
|
||||
CIFS_POSIX = yes;
|
||||
CIFS_FSCACHE = yes;
|
||||
CIFS_STATS = yes;
|
||||
CIFS_STATS = whenOlder "4.19" yes;
|
||||
CIFS_WEAK_PW_HASH = yes;
|
||||
CIFS_UPCALL = yes;
|
||||
CIFS_ACL = yes;
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{ stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, libelf, utillinux, ... } @ args:
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "4.18-rc8";
|
||||
modDirVersion = "4.18.0-rc8";
|
||||
extraMeta.branch = "4.18";
|
||||
version = "4.19-rc1";
|
||||
modDirVersion = "4.19.0-rc1";
|
||||
extraMeta.branch = "4.19";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
|
||||
sha256 = "0rqyqms63c15iwcwy40yqd9fvlvh3ah09gddv0wf45z9dqp7id1m";
|
||||
sha256 = "14c9xg9sv0jrdri36das97vdbybi7vmcy59mj9wmgaz81cdk3wg5";
|
||||
};
|
||||
|
||||
# Should the testing kernels ever be built on Hydra?
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{ stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "charybdis-4.1";
|
||||
name = "charybdis-4.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "charybdis-ircd";
|
||||
repo = "charybdis";
|
||||
rev = name;
|
||||
sha256 = "1j0fjf4rdiyvakxqa97x272xra64rzjhbj8faciyb4b13pyrdsmw";
|
||||
sha256 = "0wvssc8b1xq6svcqrwxrpc1ga8ip0sksv73wwbk8na0pmysdvpg0";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
@ -3,16 +3,17 @@
|
|||
stdenv.mkDerivation rec {
|
||||
program = "dex";
|
||||
name = "${program}-${version}";
|
||||
version = "0.7";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jceb";
|
||||
repo = program;
|
||||
rev = "v${version}";
|
||||
sha256 = "041ms01snalapapaniabr92d8iim1qrxian626nharjmp2rd69v5";
|
||||
sha256 = "13dkjd1373mbvskrdrp0865llr3zvdr90sc6a6jqswh3crmgmz4k";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ python3 ];
|
||||
nativeBuildInputs = [ python3.pkgs.sphinx ];
|
||||
makeFlags = [ "PREFIX=$(out)" "VERSION=$(version)" ];
|
||||
|
||||
meta = {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{ callPackage, fetchgit, fetchpatch, ... } @ args:
|
||||
|
||||
callPackage ./generic.nix (args // rec {
|
||||
version = "12.2.2";
|
||||
version = "12.2.7";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/ceph/ceph.git";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "01anqxyffa8l2lzgyb0dj6fjicfjdx2cq9y1klh24x69gxwkdh00";
|
||||
sha256 = "031nfw2g2fdpxxx39g862phgmdx68hj9r54axazandghfhc1bzrl";
|
||||
};
|
||||
|
||||
})
|
||||
|
|
|
@ -1456,6 +1456,8 @@ with pkgs;
|
|||
|
||||
onboard = callPackage ../applications/misc/onboard { };
|
||||
|
||||
xkbd = callPackage ../applications/misc/xkbd { };
|
||||
|
||||
optar = callPackage ../tools/graphics/optar {};
|
||||
|
||||
patdiff = callPackage ../tools/misc/patdiff { };
|
||||
|
@ -1706,7 +1708,9 @@ with pkgs;
|
|||
nrg2iso = callPackage ../tools/cd-dvd/nrg2iso { };
|
||||
|
||||
libceph = ceph.lib;
|
||||
ceph = callPackage ../tools/filesystems/ceph { boost = boost165; };
|
||||
ceph = callPackage ../tools/filesystems/ceph {
|
||||
boost = boost166.override { enablePython = true; };
|
||||
};
|
||||
ceph-dev = ceph;
|
||||
|
||||
certmgr = callPackage ../tools/security/certmgr { };
|
||||
|
@ -19746,6 +19750,8 @@ with pkgs;
|
|||
|
||||
EmptyEpsilon = callPackage ../games/empty-epsilon { };
|
||||
|
||||
endgame-singularity = callPackage ../games/endgame-singularity { };
|
||||
|
||||
endless-sky = callPackage ../games/endless-sky { };
|
||||
|
||||
enyo-doom = libsForQt5.callPackage ../games/enyo-doom { };
|
||||
|
|
Loading…
Reference in a new issue