You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
{ |
|
description = "GnuCash"; |
|
|
|
inputs = { |
|
nixpkgs = { |
|
url = "nixpkgs/nixos-unstable"; |
|
}; |
|
}; |
|
|
|
outputs = { self, nixpkgs }@inputs: |
|
let |
|
system = "x86_64-linux"; |
|
pkgs = import nixpkgs |
|
{ |
|
inherit system; |
|
overlays = |
|
[ |
|
( |
|
self: super: |
|
{ |
|
gnucash = |
|
let |
|
pname = "gnucash"; |
|
version = "4.10"; |
|
in |
|
super.gnucash.overrideAttrs |
|
( |
|
old: |
|
{ |
|
inherit pname version; |
|
src = builtins.fetchurl |
|
{ |
|
url = "https://github.com/Gnucash/gnucash/releases/download/${version}/${pname}-${version}.tar.bz2"; |
|
sha256 = "sha256:0fy9p5fgi2i0x7acg5fnkfdrxxd3dypi3ykvnj53hfbfky8vpm3z"; |
|
}; |
|
} |
|
); |
|
} |
|
) |
|
]; |
|
}; |
|
in |
|
{ |
|
packages.${system} = { |
|
gnucash = pkgs.gnucash; |
|
default = self.packages.${system}.gnucash; |
|
}; |
|
}; |
|
}
|
|
|