Skip to content

Commit

Permalink
adding a default.nix for nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
travgm committed Nov 30, 2024
1 parent e3f7c21 commit efc6a0c
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
let
pkgs = import <nixpkgs> { };

customHaskellPackages = pkgs.haskellPackages.override {
overrides = self: super: {
mkDerivation = args: super.mkDerivation (args // {
jailbreak = true; # Ignore version bounds
doCheck = false; # Skip tests to avoid dependency issues
});
};
};
in
customHaskellPackages.mkDerivation {
pname = "dclock";
version = "0.1.0";

src = ./.;

isLibrary = false;
isExecutable = true;

executableHaskellDepends = with customHaskellPackages; [
base
QuickCheck
ansi-terminal
hspec
hspec-discover
lens
machines
optparse-applicative
text
time
process
];

description = "A decimal clock that breaks your day into a 1000 decimal minutes";
license = pkgs.lib.licenses.mit;
maintainers = with pkgs.lib.maintainers; [ travgm ];
mainProgram = "dclock";
}

0 comments on commit efc6a0c

Please sign in to comment.