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
42
pkgs/applications/misc/dstask/default.nix
Normal file
42
pkgs/applications/misc/dstask/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "dstask";
|
||||
version = "0.23.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "naggie";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0rfz8jim0xqcwdb5n28942v9r3hbvhjrwdgzvbwc9f9psqg2s8d2";
|
||||
};
|
||||
|
||||
# Set vendorSha256 to null because dstask vendors its dependencies (meaning
|
||||
# that third party dependencies are stored in the repository).
|
||||
#
|
||||
# Ref <https://github.com/NixOS/nixpkgs/pull/87383#issuecomment-633204382>
|
||||
# and <https://github.com/NixOS/nixpkgs/blob/d4226e3a4b5fcf988027147164e86665d382bbfa/pkgs/development/go-modules/generic/default.nix#L18>
|
||||
vendorSha256 = null;
|
||||
|
||||
doCheck = false;
|
||||
|
||||
# The ldflags reduce the executable size by stripping some debug stuff.
|
||||
# The other variables are set so that the output of dstask version shows the
|
||||
# git ref and the release version from github.
|
||||
# Ref <https://github.com/NixOS/nixpkgs/pull/87383#discussion_r432097657>
|
||||
ldflags = [
|
||||
"-w" "-s"
|
||||
"-X github.com/naggie/dstask.VERSION=${version}"
|
||||
"-X github.com/naggie/dstask.GIT_COMMIT=v${version}"
|
||||
];
|
||||
|
||||
subPackages = [ "cmd/dstask.go" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command line todo list with super-reliable git sync";
|
||||
homepage = src.meta.homepage;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ stianlagstad ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue