Skip to content
Snippets Groups Projects
Commit d80696e9 authored by Jens Nolte's avatar Jens Nolte
Browse files

Merge default.nix into flake.nix; update dependencies

parent fc07fe9e
No related branches found
No related tags found
No related merge requests found
{ pkgs ? import <nixpkgs> {}, haskellPackages ? pkgs.haskellPackages, args ? {} }:
let
#quasar-wayland = haskellPackages.callCabal2nix "quasar-wayland" ./. args;
quasar-wayland = pkgs.haskell.packages.ghc922.callCabal2nix "quasar-wayland" ./. args;
in
if pkgs.lib.inNixShell then quasar-wayland.env else quasar-wayland
...@@ -2,16 +2,18 @@ ...@@ -2,16 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1649225869, "lastModified": 1659077768,
"narHash": "sha256-u1zLtPmQzhT9mNXyM8Ey9pk7orDrIKdwooeGDEXm5xM=", "narHash": "sha256-P0XIHBVty6WIuIrk2DZNvLcYev9956y1prT4zL212H8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b6966d911da89e5a7301aaef8b4f0a44c77e103c", "rev": "2a93ea177c3d7700b934bf95adfe00c435f696b8",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "owner": "NixOS",
"type": "indirect" "ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"quasar": { "quasar": {
...@@ -22,11 +24,11 @@ ...@@ -22,11 +24,11 @@
}, },
"locked": { "locked": {
"host": "git.c3pb.de", "host": "git.c3pb.de",
"lastModified": 1658625376, "lastModified": 1659338987,
"narHash": "sha256-A+LbIPqKDimBOGvee/e/CWVZSxX7UI2CYUs7xJ2dMd4=", "narHash": "sha256-ysZhQq4A3bkXm3euWVvBlkuVtVv6srSmWN1U50rAhgE=",
"owner": "jens", "owner": "jens",
"repo": "quasar", "repo": "quasar",
"rev": "cd71ac69c35e1577438e73a5b5901572520b67b6", "rev": "f80139a337b62d2e61e18b78530928b20da2dafc",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
url = gitlab:jens/quasar?host=git.c3pb.de; url = gitlab:jens/quasar?host=git.c3pb.de;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
}; };
outputs = { self, nixpkgs, quasar }: outputs = { self, nixpkgs, quasar }:
...@@ -17,15 +19,16 @@ ...@@ -17,15 +19,16 @@
self.overlay self.overlay
quasar.overlay quasar.overlay
]; }; ]; };
in { in rec {
inherit (pkgs.haskellPackages) quasar-wayland; default = quasar-wayland;
quasar-wayland = pkgs.haskell.packages.ghc923.quasar-wayland;
} }
); );
overlay = self: super: { overlay = final: prev: {
haskell = super.haskell // { haskell = prev.haskell // {
packageOverrides = hself: hsuper: super.haskell.packageOverrides hself hsuper // { packageOverrides = hfinal: hprev: prev.haskell.packageOverrides hfinal hprev // {
quasar-wayland = import ./. { pkgs = self; haskellPackages = hself; }; quasar-wayland = hfinal.callCabal2nix "quasar-wayland" ./. {};
}; };
}; };
}; };
...@@ -34,8 +37,6 @@ ...@@ -34,8 +37,6 @@
quasar = quasar.overlay; quasar = quasar.overlay;
}; };
defaultPackage = forAllSystems (system: self.packages.${system}.quasar-wayland);
devShell = forAllSystems (system: devShell = forAllSystems (system:
let let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment