Skip to content

Commit

Permalink
Merge pull request #9 from tuckershea/pkgs/init/cowfetch
Browse files Browse the repository at this point in the history
init cowfetch at 1.0.1
  • Loading branch information
NoRePercussions authored Dec 17, 2024
2 parents da46ab7 + 2ec522c commit b84a14a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
modules = import ./modules; # NixOS modules
overlays = import ./overlays; # nixpkgs overlays

cowfetch = pkgs.callPackage ./pkgs/cowfetch {};
linux-bench = pkgs.callPackage ./pkgs/linux-bench {};
mailrise = pkgs.callPackage ./pkgs/mailrise {};
salt-lint = pkgs.callPackage ./pkgs/salt-lint {};
Expand Down
36 changes: 36 additions & 0 deletions pkgs/cowfetch/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
fetchFromGitHub,
fetchpatch,
stdenv,
}:
stdenv.mkDerivation rec {
pname = "cowfetch";
version = "1.0.1";

src = fetchFromGitHub {
owner = "bradeythedev";
repo = pname;
rev = "v${version}";
sha256 = "sha256-CQbU44qx4YLZVZyKz3Ho2lmcGjZ7YoDJZU8xXrI2YCQ=";
};

patches = [
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/bradeythedev/cowfetch/pull/1.patch";
sha256 = "sha256-54wTbut4DxUxZSoShxWze4IB0tkhPK2lUfmr6JbMBzg=";
})
];

installPhase = ''
mkdir -p $out/bin/
PREFIX="$out" make install
'';

meta = with lib; {
description = "Fetch program with a cow";
homepage = "https://github.com/bradeythedev/cowfetch";
license = licenses.gpl3;
maintainers = [ ];
platforms = platforms.linux;
};
}

0 comments on commit b84a14a

Please sign in to comment.