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/wayland/swaycwd/default.nix
Normal file
37
pkgs/tools/wayland/swaycwd/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, nimPackages
|
||||
, fetchFromGitLab
|
||||
, enableShells ? [ "bash" "zsh" "fish" "sh" "posh" ]
|
||||
}:
|
||||
nimPackages.buildNimPackage rec{
|
||||
pname = "swaycwd";
|
||||
version = "0.0.2";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "cab404";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-OZWOPtOqcX+fVQCxWntrn98EzFu70WH55rfYCPDMSKk=";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
{
|
||||
echo 'let enabledShells: seq[string] = @${builtins.toJSON enableShells}'
|
||||
echo 'export enabledShells'
|
||||
} > shells.nim
|
||||
cat << EOF > swaycwd.nimble
|
||||
srcDir = "."
|
||||
bin = "swaycwd"
|
||||
EOF
|
||||
'';
|
||||
|
||||
nimFlags = [ "--opt:speed" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://gitlab.com/cab404/swaycwd";
|
||||
description = "Returns cwd for shell in currently focused sway window, or home directory if cannot find shell";
|
||||
maintainers = with maintainers; [ cab404 ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl3Only;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue