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
37
pkgs/tools/graphics/ldgallery/compiler/default.nix
Normal file
37
pkgs/tools/graphics/ldgallery/compiler/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# generated with cabal2nix by ./generate.sh
|
||||
{ mkDerivation, aeson, base, cmdargs, containers, data-ordlist
|
||||
, directory, fetchgit, filepath, Glob, hpack, parallel-io, process
|
||||
, safe, lib, text, time, yaml
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "ldgallery-compiler";
|
||||
version = "2.0";
|
||||
src = fetchgit {
|
||||
url = "https://github.com/pacien/ldgallery.git";
|
||||
sha256 = "1a82wy6ns1434gdba2l04crvr5waf03y02bappcxqci2cfb1cznz";
|
||||
rev = "e93f7b1eb84c083d67567115284c0002a3a7d5fc";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
postUnpack = "sourceRoot+=/compiler; echo source root reset to $sourceRoot";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
enableSeparateDataOutput = true;
|
||||
libraryHaskellDepends = [
|
||||
aeson base cmdargs containers data-ordlist directory filepath Glob
|
||||
parallel-io process safe text time yaml
|
||||
];
|
||||
libraryToolDepends = [ hpack ];
|
||||
executableHaskellDepends = [
|
||||
aeson base cmdargs containers data-ordlist directory filepath Glob
|
||||
parallel-io process safe text time yaml
|
||||
];
|
||||
testHaskellDepends = [
|
||||
aeson base cmdargs containers data-ordlist directory filepath Glob
|
||||
parallel-io process safe text time yaml
|
||||
];
|
||||
prePatch = "hpack";
|
||||
homepage = "https://ldgallery.pacien.org";
|
||||
description = "A static generator which turns a collection of tagged pictures into a searchable web gallery";
|
||||
license = lib.licenses.agpl3;
|
||||
maintainers = with lib.maintainers; [ pacien ];
|
||||
}
|
||||
19
pkgs/tools/graphics/ldgallery/compiler/generate.sh
Executable file
19
pkgs/tools/graphics/ldgallery/compiler/generate.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p cabal2nix
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if [ "$#" -ne 1 ] || [[ "$1" == -* ]]; then
|
||||
echo "Regenerates the nix file for the ldgallery-compiler package."
|
||||
echo "Usage: $0 <git release tag>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "# generated with cabal2nix by ./generate.sh" > default.nix
|
||||
|
||||
cabal2nix \
|
||||
--maintainer pacien \
|
||||
--subpath compiler \
|
||||
--revision $1 \
|
||||
"https://github.com/pacien/ldgallery.git" \
|
||||
>> default.nix
|
||||
Loading…
Add table
Add a link
Reference in a new issue