diff --git a/.direnv/flake-profile b/.direnv/flake-profile index c7ae88bc02494e5cf6b03ba18a2c7b7ecac7df40..e48a07792db2e2511aa10cfb770da14acf684ac8 120000 --- a/.direnv/flake-profile +++ b/.direnv/flake-profile @@ -1 +1 @@ -flake-profile-11-link \ No newline at end of file +flake-profile-12-link \ No newline at end of file diff --git a/.direnv/flake-profile-12-link b/.direnv/flake-profile-12-link new file mode 120000 index 0000000000000000000000000000000000000000..2576f87c7e7bc8955c0ebc264f906b13b8ecb716 --- /dev/null +++ b/.direnv/flake-profile-12-link @@ -0,0 +1 @@ +/nix/store/64g3p9ilfsik3g37zsdn336vkgc3pjqf-bob-env \ No newline at end of file diff --git a/README.md b/README.md index 50115efe11a8e4d9b6cc9d49eedaa2e44d401dd4..f3e24861f40c563a91fb843e9d128f8416142205 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,10 @@ To check out docs and examples, visit [gitlab.schukai.com/oss/bob](https://gitla wget -O ~/.local/bin/bob http://download.schukai.com/tools/bob/bob-$( uname -s | tr [:upper:] [:lower:])-$(echo `uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/`) && chmod u+x ~/.local/bin/bob ``` +### Nix/Flake Support + +This repository contains a file called flake.nix. You can install this program using the nix package manager. + ## Usage ### Template diff --git a/flake.nix b/flake.nix index d9de8ed4f306f33b897e6342e17d6613fbc3dbf7..1ab11a163fba68946b7dceae6fb176343f7460ae 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,5 @@ { description = "Bob: The HTML and HTML fragment builder"; - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; outputs = { self, nixpkgs }: @@ -25,19 +24,7 @@ vendorSha256 = "sha256-qiObIbA75kfkGzZoTtZbkm4zQqXokL+hiWrJdmL8oxU="; # Use "nix to-sri --type sha256" on the actual hash doCheck = true; nativeBuildInputs = [ final.jq ]; - - - - #buildInputs = [ nixpkgs.go ]; - ldflags=''-X main.version=${currentVersion} -X main.build=${self.lastModifiedDate}''; - #buildFlags = "-ldflags=-X main.version=${currentVersion} -X main.build=${self.lastModifiedDate}"; -# buildPhase = '' -# buildFlagsArray=( -# "-ldflags=-X main.version=${currentVersion} -X main.build=${self.lastModifiedDate}" -# ) -# buildPhase -# ''; }; };