]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/commitdiff
Use niv for ldapvi
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 30 Mar 2020 21:20:50 +0000 (23:20 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 24 Apr 2020 22:04:53 +0000 (00:04 +0200)
default.nix
nix/sources.json
overlays/ldapvi/default.nix
overlays/ldapvi/ldapvi.json [deleted file]

index ec3b9d4aa12c9bc3c113d184f64505e85d55c68a..0720a568f4d9fb11710a5a8d702a32dac3a31a07 100644 (file)
@@ -1,6 +1,6 @@
 { sources ? import ./nix/sources.nix }:
 let
-  pkgs = import sources.nixpkgs-env {};
+  pkgs = import sources.nixpkgs {};
   pkgs_ = pkgs;
   mypkgs = import ./pkgs { pkgs = pkgs_; };
 in
index fb0e7d63d18e741dfd6843c02562b4adcd5318b4..6af75bd5875ac55ec51e350a38ba583f57e50ffb 100644 (file)
@@ -1,4 +1,10 @@
 {
+    "ldapvi": {
+        "ref": "master",
+        "repo": "http://www.lichteblau.com/git/ldapvi.git",
+        "rev": "f1d42bad66cc4623d1ff21fbd5dddbf5009d3e40",
+        "type": "git"
+    },
     "niv": {
         "branch": "master",
         "description": "Easy dependency management for Nix projects",
@@ -11,7 +17,7 @@
         "url": "https://github.com/nmattia/niv/archive/372f96bff217a7a019de27667d04118cffa9841b.tar.gz",
         "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
     },
-    "nixpkgs-env": {
+    "nixpkgs": {
         "branch": "nixos-19.03",
         "description": "A read-only mirror of NixOS/nixpkgs tracking the released channels. Send issues and PRs to",
         "homepage": "https://github.com/NixOS/nixpkgs",
@@ -32,7 +38,7 @@
         "url_template": "https://releases.nixos.org/nixos/<version>/nixos-<version>.<revision>/nixexprs.tar.xz",
         "version": "19.03"
     },
-    "nixpkgs-nixops-previous": {
+    "nixpkgs-nixops-next": {
         "channel_link": "https://nixos.org/channels/nixos-19.03",
         "revision": "173677.daf861a810d",
         "sha256": "0v5bhdiyg1xv1dzsy7jbm301ighsvmi87wibw96iiky8sqs6qd4z",
@@ -41,7 +47,7 @@
         "url_template": "https://releases.nixos.org/nixos/<version>/nixos-<version>.<revision>/nixexprs.tar.xz",
         "version": "19.03"
     },
-    "nixpkgs-nixops-next": {
+    "nixpkgs-nixops-previous": {
         "channel_link": "https://nixos.org/channels/nixos-19.03",
         "revision": "173677.daf861a810d",
         "sha256": "0v5bhdiyg1xv1dzsy7jbm301ighsvmi87wibw96iiky8sqs6qd4z",
index 030e676972e7f9dd05455a65aa6f35bc95e842fe..58cd4ede6821ec8edbde612befed3bc865a9ec98 100644 (file)
@@ -1,3 +1,7 @@
 self: super: {
-  ldapvi = super.ldapvi.overrideAttrs (old: self.mylibs.fetchedGit ./ldapvi.json);
+  ldapvi = super.ldapvi.overrideAttrs (old: rec {
+    name = "ldapvi-${version}";
+    version = "${builtins.substring 0 7 self.sources.ldapvi.rev}-${self.sources.ldapvi.ref}";
+    src = self.sources.ldapvi;
+  });
 }
diff --git a/overlays/ldapvi/ldapvi.json b/overlays/ldapvi/ldapvi.json
deleted file mode 100644 (file)
index ceaff71..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-{
-  "tag": "f1d42ba-master",
-  "meta": {
-    "name": "ldapvi",
-    "url": "http://www.lichteblau.com/git/ldapvi.git",
-    "branch": "master"
-  },
-  "git": {
-    "url": "http://www.lichteblau.com/git/ldapvi.git",
-    "rev": "f1d42bad66cc4623d1ff21fbd5dddbf5009d3e40",
-    "sha256": "0c2h4b1spp9z6a16gy9azf0wyxq397yy7001x1zlvc7c60q11wry",
-    "fetchSubmodules": true
-  }
-}