read checkinator git version from JSON file

master
vuko 2021-01-11 14:18:15 +01:00
parent 9774295537
commit 65c574a6b5
4 changed files with 16 additions and 10 deletions

5
checkinator-repo.json Normal file
View File

@ -0,0 +1,5 @@
{
"url": "http://code.hackerspace.pl/checkinator",
"rev": "a27d3d8dfeb296a77ab49359f1279f44c11610a2",
"sha256": "1w02plyh07zdh855210b6wb29r03h3fc73ivqshp5w69m4j6j0bi"
}

View File

@ -6,11 +6,8 @@ let
url = https://api.github.com/repos/NixOS/nixpkgs/tarball/0bf298df24f721a7f85c580339fb7eeff64b927c;
}) { config = pkgs.config; };
repo = pkgs.fetchgit {
url = "http://code.hackerspace.pl/checkinator";
rev = "a27d3d8dfeb296a77ab49359f1279f44c11610a2";
sha256 = "1w02plyh07zdh855210b6wb29r03h3fc73ivqshp5w69m4j6j0bi";
};
repo = pkgs.fetchgit (builtins.fromJSON
(builtins.readFile ./checkinator-repo.json));
checkinator = old-pkgs.callPackage "${repo}/default.nix" {};
name = "checkinator-tracker";

View File

@ -6,11 +6,8 @@ let
url = https://api.github.com/repos/NixOS/nixpkgs/tarball/0bf298df24f721a7f85c580339fb7eeff64b927c;
}) { config = pkgs.config; };
repo = pkgs.fetchgit {
url = "http://code.hackerspace.pl/checkinator";
rev = "a27d3d8dfeb296a77ab49359f1279f44c11610a2";
sha256 = "1w02plyh07zdh855210b6wb29r03h3fc73ivqshp5w69m4j6j0bi";
};
repo = pkgs.fetchgit (builtins.fromJSON
(builtins.readFile ./checkinator-repo.json));
checkinator = old-pkgs.callPackage "${repo}/default.nix" {};
name = "checkinator-web";

7
default.nix Normal file
View File

@ -0,0 +1,7 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.nixos {
imports = [
./configuration.nix
];
}