uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
25
pkgs/development/haskell-modules/package-list.nix
Normal file
25
pkgs/development/haskell-modules/package-list.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ runCommand, haskellPackages, lib, all-cabal-hashes, writeShellScript }:
|
||||
let
|
||||
# Checks if the version looks like a Haskell PVP version which is the format
|
||||
# Hackage enforces. This will return false if the version strings is empty or
|
||||
# we've overridden the package to ship an unstable version of the package
|
||||
# (sadly there's no good way to show something useful on hackage in this case).
|
||||
isPvpVersion = v: builtins.match "([0-9]+)(\\.[0-9]+)*" v != null;
|
||||
|
||||
pkgLine = name: pkg:
|
||||
let
|
||||
version = pkg.version or "";
|
||||
in
|
||||
if isPvpVersion version then
|
||||
''"${name}","${version}","http://hydra.nixos.org/job/nixpkgs/trunk/haskellPackages.${name}.x86_64-linux"''
|
||||
else "";
|
||||
all-haskellPackages = builtins.toFile "all-haskellPackages" (lib.concatStringsSep "\n" (lib.filter (x: x != "") (lib.mapAttrsToList pkgLine haskellPackages)));
|
||||
in
|
||||
runCommand "hackage-package-list" { }
|
||||
# This command will make a join between all packages on hackage and haskellPackages.*.
|
||||
# It creates a valid csv file which can be uploaded to hackage.haskell.org.
|
||||
# The call is wrapped in echo $(...) to trim trailing newline, which hackage requires.
|
||||
''
|
||||
mkdir -p $out/bin
|
||||
echo -n "$(tar -t -f ${all-cabal-hashes} | sed 's![^/]*/\([^/]*\)/.*!"\1"!' | sort -u | join -t , - ${all-haskellPackages})" > $out/nixos-hackage-packages.csv
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue