Jeffrey C. Ollie 3 months ago
commit 3fb4c4c9ef
  1. 26
      flake.lock
  2. 49
      flake.nix

@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1653060744,
"narHash": "sha256-kfRusllRumpt33J1hPV+CeCCylCXEU7e0gn2/cIM7cY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "dfd82985c273aac6eced03625f454b334daae2e8",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

@ -0,0 +1,49 @@
{
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;
};
};
}
Loading…
Cancel
Save