Skip to content
Snippets Groups Projects
Verified Commit d3e7b5c7 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: change flake.nix

parent 07ddaf7e
No related branches found
No related tags found
No related merge requests found
Pipeline #23609 passed
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1688679045, "lastModified": 1690558459,
"narHash": "sha256-t3xGEfYIwhaLTPU8FLtN/pLPytNeDwbLI6a7XFFBlGo=", "narHash": "sha256-5W7y1l2cLYPkpJGNlAja7XW2X2o9rjf0O1mo9nxS9jQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3c7487575d9445185249a159046cc02ff364bff8", "rev": "48e82fe1b1c863ee26a33ce9bd39621d2ada0a33",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "id": "nixpkgs",
"ref": "nixos-unstable", "ref": "nixos-23.05",
"type": "indirect" "type": "indirect"
} }
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
description = "Bob: The HTML and HTML fragment builder"; description = "Bob: The HTML and HTML fragment builder";
# Nixpkgs / NixOS version to use. # Nixpkgs / NixOS version to use.
inputs.nixpkgs.url = "nixpkgs/nixos-unstable"; inputs.nixpkgs.url = "nixpkgs/nixos-23.05";
outputs = { self, nixpkgs }: outputs = { self, nixpkgs }:
let let
...@@ -10,14 +10,7 @@ ...@@ -10,14 +10,7 @@
# to work with older version of flakes # to work with older version of flakes
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101"; lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
# Generate a user-friendly version number.
#version = builtins.substring 0 8 lastModifiedDate;
rootPath = ./.; rootPath = ./.;
releaseJson = builtins.fromJSON (builtins.readFile "${rootPath}/release.json");
version = releaseJson.version;
# System types to support. # System types to support.
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
...@@ -39,7 +32,6 @@ ...@@ -39,7 +32,6 @@
{ {
bob = pkgs.buildGoModule { bob = pkgs.buildGoModule {
pname = "bob"; pname = "bob";
inherit version;
# In 'nix develop', we don't need a copy of the source tree # In 'nix develop', we don't need a copy of the source tree
# in the Nix store. # in the Nix store.
src = ././source; src = ././source;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment