dream2nix/examples/repo-with-packages-flake/packages/hello/default.nix
2023-11-07 19:08:27 +07:00

29 lines
450 B
Nix

{
dream2nix,
config,
lib,
self,
...
}: {
imports = [
dream2nix.modules.dream2nix.mkDerivation
];
name = "hello";
version = "2.12";
deps = {nixpkgs, ...}: {
inherit
(nixpkgs)
stdenv
;
};
mkDerivation = {
src = builtins.fetchTarball {
url = "https://ftp.gnu.org/gnu/hello/hello-${config.version}.tar.gz";
sha256 = "sha256-4GQeKLIxoWfYiOraJub5RsHNVQBr2H+3bfPP22PegdU=";
};
};
}