Track hledger from master
This commit is contained in:
parent
0baa1447fd
commit
df44f88516
2 changed files with 26 additions and 1 deletions
25
configurations/hledger.nix
Normal file
25
configurations/hledger.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
hledger-repo = pkgs.fetchFromGitHub {
|
||||||
|
owner = "simonmichael";
|
||||||
|
repo = "hledger";
|
||||||
|
rev = "76dd4d83bc114974fe498578971d9100be521d7a";
|
||||||
|
sha256 = "109b52adhfsxh2zskjxy63xsw1mhn844ddq09b6llqz21h71wsmx";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(self: super: {
|
||||||
|
haskellPackages = super.haskellPackages.override {
|
||||||
|
overrides = hself: hsuper: rec {
|
||||||
|
hledger = hsuper.callCabal2nixWithOptions "hledger" hledger-repo "--subpath hledger" { };
|
||||||
|
hledger-lib = hsuper.callCabal2nixWithOptions "hledger-lib" hledger-repo "--subpath hledger-lib" { };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager.users.charlotte = { pkgs, ... }: {
|
||||||
|
home.packages = [ pkgs.hledger ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6,6 +6,7 @@
|
||||||
../configurations/direnv.nix
|
../configurations/direnv.nix
|
||||||
../configurations/git.nix
|
../configurations/git.nix
|
||||||
../configurations/gnupg.nix
|
../configurations/gnupg.nix
|
||||||
|
../configurations/hledger.nix
|
||||||
../configurations/locale.nix
|
../configurations/locale.nix
|
||||||
../configurations/mail.nix
|
../configurations/mail.nix
|
||||||
../configurations/neovim.nix
|
../configurations/neovim.nix
|
||||||
|
@ -25,7 +26,6 @@
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.users.charlotte = { pkgs, ... }: {
|
home-manager.users.charlotte = { pkgs, ... }: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
hledger
|
|
||||||
htop
|
htop
|
||||||
moreutils
|
moreutils
|
||||||
ncdu
|
ncdu
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue